aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-07-10 09:19:12 +0800
committerdanfe <danfe@FreeBSD.org>2013-07-10 09:19:12 +0800
commit69b32b33b2990c3a7c0320105de6bcd3e9bd9ac7 (patch)
tree3889fd1d995257e7b96dc8dcc119e027d57cc7e3
parent83cefb78a5557fd071d94598be43c9d18158b4f8 (diff)
downloadfreebsd-ports-gnome-69b32b33b2990c3a7c0320105de6bcd3e9bd9ac7.tar.gz
freebsd-ports-gnome-69b32b33b2990c3a7c0320105de6bcd3e9bd9ac7.tar.zst
freebsd-ports-gnome-69b32b33b2990c3a7c0320105de6bcd3e9bd9ac7.zip
Cleanup the port a bit:
- Make COMMENT reflect the reality better - Drop shlib ABI versions from LIB_DEPENDS - Utilize USES of gmake and pkgconfig - Collapse two CONFIGURE_ENV lines into one - Drop MAKE_JOBS_SAFE: it will be default in a few days - Wrap very long lines in post-patch for better readability
-rw-r--r--graphics/libgphoto2/Makefile45
1 files changed, 28 insertions, 17 deletions
diff --git a/graphics/libgphoto2/Makefile b/graphics/libgphoto2/Makefile
index 96b296ec17bd..7f0848ce8226 100644
--- a/graphics/libgphoto2/Makefile
+++ b/graphics/libgphoto2/Makefile
@@ -8,20 +8,23 @@ CATEGORIES= graphics
MASTER_SITES= SF/gphoto/libgphoto/${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-COMMENT= Universal digital camera picture control tool
+COMMENT= Universal digital camera control library
-LIB_DEPENDS= exif.12:${PORTSDIR}/graphics/libexif \
- jpeg.11:${PORTSDIR}/graphics/jpeg
+LIB_DEPENDS= exif:${PORTSDIR}/graphics/libexif \
+ jpeg:${PORTSDIR}/graphics/jpeg
+USES= gmake pkgconfig
USE_BZIP2= yes
-USE_GNOME= pkgconfig ltverhack
-USE_GMAKE= yes
+USE_GNOME= ltverhack
USE_AUTOTOOLS= libtool libltdl
LIBTOOLFILES= configure libgphoto2_port/configure
USE_LDCONFIG= yes
-CONFIGURE_ENV= LTDLINCL="-I${LOCALBASE}/include" LIBLTDL="-L${LOCALBASE}/lib -lltdl"
+CONFIGURE_ENV= LTDLINCL="-I${LOCALBASE}/include" \
+ LIBLTDL="-L${LOCALBASE}/lib -lltdl" \
+ LIBUSB_CFLAGS="-I/usr/include" \
+ LIBUSB_LIBS="-lusb"
+
PLIST_SUB= VERSION="${PORTVERSION}" VERSION_PORT=0.8.0
-MAKE_JOBS_SAFE= yes
MAN3= libgphoto2.3 libgphoto2_port.3
@@ -31,27 +34,35 @@ MAN3= libgphoto2.3 libgphoto2_port.3
USES+= gettext
PLIST_SUB+= NLS=""
.else
+USES+= iconv
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
-USES+= iconv
.endif
-CONFIGURE_ENV+= LIBUSB_LIBS="-lusb" LIBUSB_CFLAGS="-I/usr/include"
-
post-patch:
.for file in configure libgphoto2_port/configure
@${REINPLACE_CMD} -e \
's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g ; \
s|-g -O2||g ; \
- /grep -i linux/s|; fi ; then|; else false; fi ; then|' ${WRKSRC}/${file}
+ /grep -i linux/s|; fi ; then|; else false; fi ; then|' \
+ ${WRKSRC}/${file}
.endfor
.if ${PORT_OPTIONS:MNLS}
- @${REINPLACE_CMD} -e 's|(LDFLAGS) -o|(LDFLAGS) -lintl -o|' ${WRKSRC}/libgphoto2_port/libgphoto2_port/Makefile.in
+ @${REINPLACE_CMD} -e 's|(LDFLAGS) -o|(LDFLAGS) -lintl -o|' \
+ ${WRKSRC}/libgphoto2_port/libgphoto2_port/Makefile.in
.endif
- @${REINPLACE_CMD} -e '/test.*udevscriptdir/d ; s| "$$(DESTDIR)$$(udevscriptdir)"||' ${WRKSRC}/libgphoto2_port/usb/Makefile.in ${WRKSRC}/packaging/generic/Makefile.in
- @${REINPLACE_CMD} -e 's|linux-hotplug ||' ${WRKSRC}/packaging/Makefile.in
- @${REINPLACE_CMD} -e 's|@HAVE_DOXYGEN_TRUE@|#| ; s|@HAVE_DOXYGEN_FALSE@||' ${WRKSRC}/doc/Makefile.in
- @${REINPLACE_CMD} -e '/Requires/d' ${WRKSRC}/libgphoto2_port/libgphoto2_port.pc.in
- @${REINPLACE_CMD} 's|with_hal=yes|with_hal=no|' ${WRKSRC}/libgphoto2_port/configure
+ @${REINPLACE_CMD} -e '/test.*udevscriptdir/d ; \
+ s| "$$(DESTDIR)$$(udevscriptdir)"||' \
+ ${WRKSRC}/libgphoto2_port/usb/Makefile.in \
+ ${WRKSRC}/packaging/generic/Makefile.in
+ @${REINPLACE_CMD} -e 's|linux-hotplug ||' \
+ ${WRKSRC}/packaging/Makefile.in
+ @${REINPLACE_CMD} -e \
+ 's|@HAVE_DOXYGEN_TRUE@|#| ; s|@HAVE_DOXYGEN_FALSE@||' \
+ ${WRKSRC}/doc/Makefile.in
+ @${REINPLACE_CMD} -e '/Requires/d' \
+ ${WRKSRC}/libgphoto2_port/libgphoto2_port.pc.in
+ @${REINPLACE_CMD} 's|with_hal=yes|with_hal=no|' \
+ ${WRKSRC}/libgphoto2_port/configure
.include <bsd.port.mk>