svn commit: r353307 - in head/graphics/gphoto2: . files
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu May 8 14:32:47 UTC 2014
Author: amdmi3
Date: Thu May 8 14:32:46 2014
New Revision: 353307
URL: http://svnweb.freebsd.org/changeset/ports/353307
QAT: https://qat.redports.org/buildarchive/r353307/
Log:
- Convert USE_BZIP2 to USES
- Fix NLS support
Added:
head/graphics/gphoto2/files/
head/graphics/gphoto2/files/patch-configure (contents, props changed)
Modified:
head/graphics/gphoto2/Makefile
Modified: head/graphics/gphoto2/Makefile
==============================================================================
--- head/graphics/gphoto2/Makefile Thu May 8 14:28:43 2014 (r353306)
+++ head/graphics/gphoto2/Makefile Thu May 8 14:32:46 2014 (r353307)
@@ -14,8 +14,7 @@ LICENSE= GPLv2
LIB_DEPENDS= libpopt.so:${PORTSDIR}/devel/popt \
libgphoto2.so:${PORTSDIR}/graphics/libgphoto2
-USE_BZIP2= yes
-USES= gmake pkgconfig
+USES= tar:bzip2 gmake pkgconfig
GNU_CONFIGURE= yes
CONFIGURE_ENV= POPT_CFLAGS="$$(pkg-config --cflags popt)" \
POPT_LIBS="$$(pkg-config --libs popt)"
@@ -30,14 +29,15 @@ AALIB_LIB_DEPENDS= libaa.so:${PORTSDIR}/
AALIB_CONFIGURE_WITH= aalib
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
+NLS_CPPFLAGS= -I${LOCALBASE}/include
+NLS_LDFLAGS= -L${LOCALBASE}/lib
+NLS_CONFIGURE_ENV= LIBS="-lintl"
READLINE_USES= readline
READLINE_CONFIGURE_WITH= readline
-.include <bsd.port.options.mk>
-
post-patch:
@${REINPLACE_CMD} -e \
- 's|-lpthread|-pthread|' \
+ 's|-lpthread|${PTHREAD_LIBS}|' \
${WRKSRC}/configure
post-install:
Added: head/graphics/gphoto2/files/patch-configure
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/graphics/gphoto2/files/patch-configure Thu May 8 14:32:46 2014 (r353307)
@@ -0,0 +1,17 @@
+--- configure.orig 2014-05-08 17:21:32.000000000 +0400
++++ configure 2014-05-08 17:23:08.000000000 +0400
+@@ -12988,13 +12988,11 @@
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+ #include <libintl.h>
+-extern int _nl_msg_cat_cntr;
+-extern int *_nl_domain_bindings;
+ int
+ main ()
+ {
+ bindtextdomain ("", "");
+-return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
++return (int) gettext ("");
+ ;
+ return 0;
+ }
More information about the svn-ports-all
mailing list