diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-29 22:27:05 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-04-29 22:27:05 +0000 |
commit | 9ff06b3cbf038359059e40e0db31ba0cbe996d0f (patch) | |
tree | 8583dfe71adaea6ce266633e1799cd602516b801 /graphics/libgphoto2/Makefile | |
parent | 25c4307da135103ea810d65f96f2f1c21e0547b4 (diff) | |
download | ports-9ff06b3cbf038359059e40e0db31ba0cbe996d0f.tar.gz ports-9ff06b3cbf038359059e40e0db31ba0cbe996d0f.zip |
Notes
Diffstat (limited to 'graphics/libgphoto2/Makefile')
-rw-r--r-- | graphics/libgphoto2/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/graphics/libgphoto2/Makefile b/graphics/libgphoto2/Makefile index f4f5d0fb01c0..5f2f2a30e3b9 100644 --- a/graphics/libgphoto2/Makefile +++ b/graphics/libgphoto2/Makefile @@ -25,13 +25,15 @@ MAKE_JOBS_SAFE= yes MAN3= libgphoto2.3 libgphoto2_port.3 -.if defined(WITHOUT_NLS) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MNLS} +USES+= gettext +PLIST_SUB+= NLS="" +.else CONFIGURE_ARGS+= --disable-nls PLIST_SUB+= NLS="@comment " USES+= iconv -.else -USES+= gettext -PLIST_SUB+= NLS="" .endif CONFIGURE_ENV+= LIBUSB_LIBS="-lusb" LIBUSB_CFLAGS="-I/usr/include" @@ -43,7 +45,7 @@ post-patch: s|-g -O2||g ; \ /grep -i linux/s|; fi ; then|; else false; fi ; then|' ${WRKSRC}/${file} .endfor -.if !defined(WITHOUT_NLS) +.if ${PORT_OPTIONS:MNLS} @${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 |