summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2012-02-15 08:50:18 +0000
committersbd <sbd@pkgsrc.org>2012-02-15 08:50:18 +0000
commitbaa204c0bf021601feca9a6d02b077ae72b3ee8d (patch)
treec832562963a49708df21b843b4124f36fe532501 /graphics
parentdc6469c55c595dfe9322580172d683e633e3cfe6 (diff)
downloadpkgsrc-baa204c0bf021601feca9a6d02b077ae72b3ee8d.tar.gz
The sed expression in the VALID_VERSION make function only works with gsed,
so add it to USE_TOOLS. With the VALID_VERSION function working properly the soname of liblensfun will now be 'liblensfun.so.0' and liblensfun.so.0 and liblensfun.so.${PKGVERSION} will also now get installed. Because the install process installs _three_ copys of liblensfun, delete two and make them symlinks. Bump PKGREVISION
Diffstat (limited to 'graphics')
-rw-r--r--graphics/lensfun/Makefile15
-rw-r--r--graphics/lensfun/PLIST4
-rw-r--r--graphics/lensfun/buildlink3.mk4
3 files changed, 17 insertions, 6 deletions
diff --git a/graphics/lensfun/Makefile b/graphics/lensfun/Makefile
index 97ee41b4edb..e2065756ef6 100644
--- a/graphics/lensfun/Makefile
+++ b/graphics/lensfun/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.12 2012/02/06 12:40:29 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2012/02/15 08:50:18 sbd Exp $
#
DISTNAME= lensfun-0.2.5
-PKGREVISION= 6
+PKGREVISION= 7
CATEGORIES= graphics
MASTER_SITES= http://download.berlios.de/lensfun/
EXTRACT_SUFX= .tar.bz2
@@ -22,10 +22,19 @@ MAKE_FILE= GNUmakefile
PYTHON_FOR_BUILD_ONLY= yes
REPLACE_PYTHON= configure
USE_LANGUAGES= c c++
-USE_TOOLS+= gmake pkg-config
+USE_TOOLS+= gmake pkg-config gsed
PKGCONFIG_OVERRIDE= libs/lensfun/lensfun.pc.in
PKG_DESTDIR_SUPPORT= user-destdir
+# Why three copys of the file?
+post-install:
+ ${RM} -f ${DESTDIR}${PREFIX}/lib/liblensfun.so
+ ${RM} -f ${DESTDIR}${PREFIX}/lib/liblensfun.so.0
+ ${LN} -s liblensfun.so.${PKGVERSION:C/nb[0-9]*//} \
+ ${DESTDIR}${PREFIX}/lib/liblensfun.so.0
+ ${LN} -s liblensfun.so.${PKGVERSION:C/nb[0-9]*//} \
+ ${DESTDIR}${PREFIX}/lib/liblensfun.so
+
.include "../../devel/glib2/buildlink3.mk"
# png: for test programs only
.include "../../graphics/png/buildlink3.mk"
diff --git a/graphics/lensfun/PLIST b/graphics/lensfun/PLIST
index 267ba860e1d..3f380c45532 100644
--- a/graphics/lensfun/PLIST
+++ b/graphics/lensfun/PLIST
@@ -1,6 +1,8 @@
-@comment $NetBSD: PLIST,v 1.6 2011/01/17 16:38:20 drochner Exp $
+@comment $NetBSD: PLIST,v 1.7 2012/02/15 08:50:18 sbd Exp $
include/lensfun.h
lib/liblensfun.so
+lib/liblensfun.so.0
+lib/liblensfun.so.${PKGVERSION}
lib/pkgconfig/lensfun.pc
share/doc/${PKGNAME}/README
share/doc/${PKGNAME}/cc-by-sa-3.0.txt
diff --git a/graphics/lensfun/buildlink3.mk b/graphics/lensfun/buildlink3.mk
index 019dabcbb84..6e4a845ebb9 100644
--- a/graphics/lensfun/buildlink3.mk
+++ b/graphics/lensfun/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.3 2012/02/06 12:40:29 wiz Exp $
+# $NetBSD: buildlink3.mk,v 1.4 2012/02/15 08:50:18 sbd Exp $
BUILDLINK_TREE+= lensfun
@@ -6,7 +6,7 @@ BUILDLINK_TREE+= lensfun
LENSFUN_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.lensfun+= lensfun>=0.2.2b
-BUILDLINK_ABI_DEPENDS.lensfun?= lensfun>=0.2.5nb6
+BUILDLINK_ABI_DEPENDS.lensfun?= lensfun>=0.2.5nb7
BUILDLINK_PKGSRCDIR.lensfun?= ../../graphics/lensfun
.include "../../devel/glib2/buildlink3.mk"