diff options
author | tijl <tijl@FreeBSD.org> | 2014-09-08 04:14:17 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-09-08 04:14:17 +0800 |
commit | 02ce32893849a409d21ac5430560fa7b6f79dd4d (patch) | |
tree | e25618413e0474fb9a98426a19b925a2713c71fe /print/panda | |
parent | cd42bd562cf04760ea12f236b3579ae207f7f75a (diff) | |
download | freebsd-ports-gnome-02ce32893849a409d21ac5430560fa7b6f79dd4d.tar.gz freebsd-ports-gnome-02ce32893849a409d21ac5430560fa7b6f79dd4d.tar.zst freebsd-ports-gnome-02ce32893849a409d21ac5430560fa7b6f79dd4d.zip |
- Convert to USES=libtool and add INSTALL_TARGET=install-strip
- Add USE_AUTOTOOLS=libtoolize (and others) because ltmain.sh is a symlink
Diffstat (limited to 'print/panda')
-rw-r--r-- | print/panda/Makefile | 29 | ||||
-rw-r--r-- | print/panda/files/patch-configure.in | 26 | ||||
-rw-r--r-- | print/panda/pkg-plist | 2 |
3 files changed, 38 insertions, 19 deletions
diff --git a/print/panda/Makefile b/print/panda/Makefile index b544f1eb4c57..b4acc1519534 100644 --- a/print/panda/Makefile +++ b/print/panda/Makefile @@ -3,7 +3,7 @@ PORTNAME= panda PORTVERSION= 0.5.4 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= print MASTER_SITES= SF \ SAVANNAH \ @@ -19,26 +19,19 @@ LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ libpng15.so:${PORTSDIR}/graphics/png \ libtiff.so:${PORTSDIR}/graphics/tiff -USES= pathfix pkgconfig gmake tar:bzip2 -USE_BDB= yes -USE_AUTOTOOLS= libtool +GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-berkeley-db +CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include +LIBS+= -L${BDB_LIB_DIR} -L${LOCALBASE}/lib +INSTALL_TARGET= install-strip +USES= gmake libtool pathfix pkgconfig tar:bzip2 +PATHFIX_MAKEFILEIN= Makefile.am +USE_AUTOTOOLS= libtoolize aclocal autoconf autoheader automake +AUTOMAKE_ARGS= -a -c -f +USE_BDB= yes USE_LDCONFIG= yes -OPTIONS_DEFINE= DOCS EXAMPLES - -CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include -DHAVE_LIBPNG ${PTHREAD_CFLAGS} -LIBS+= -lpng -LDFLAGS+= -L${BDB_LIB_DIR} -L${LOCALBASE}/lib ${PTHREAD_LIBS} -post-extract: -.for file in config.sub config.guess - @${RM} ${WRKSRC}/config/${file} && ${TOUCH} ${WRKSRC}/config/${file} -.endfor - -post-patch: - ${REINPLACE_CMD} -e 's| -lpanda| $$(top_srcdir)/libpanda.la|g' \ - ${WRKSRC}/examples/Makefile.in - ${REINPLACE_CMD} -e 's,-ldb,-l${BDB_LIB_NAME},' ${WRKSRC}/configure +OPTIONS_DEFINE= DOCS EXAMPLES post-install: ${INSTALL_MAN} ${WRKSRC}/man/panda_*.3 ${STAGEDIR}${MANPREFIX}/man/man3 diff --git a/print/panda/files/patch-configure.in b/print/panda/files/patch-configure.in new file mode 100644 index 000000000000..bf1cae63c46b --- /dev/null +++ b/print/panda/files/patch-configure.in @@ -0,0 +1,26 @@ +--- configure.in.orig 2004-04-13 00:46:24 UTC ++++ configure.in +@@ -28,7 +28,7 @@ + dnl AC_CHECK_LIB(dmalloc, malloc) + + dnl -lpng:: +-AC_CHECK_LIB(png, png_libpng_ver, CFLAGS="$CFLAGS -DHAVE_LIBPNG" LDFLAGS="$LDFLAGS -lpng" ) ++AC_CHECK_LIB(png, png_get_libpng_ver, CFLAGS="$CFLAGS -DHAVE_LIBPNG" LDFLAGS="$LDFLAGS -lpng" ) + + dnl -ltiff: + AC_CHECK_LIB(tiff, TIFFOpen, CFLAGS="$CFLAGS -DHAVE_LIBTIFF" LDFLAGS="$LDFLAGS -ltiff") +@@ -52,12 +52,12 @@ + if test "z$DATABASE" = "zedb"; then + AC_CHECK_LIB(edb, e_db_open, + [LDFLAGS="$LDFLAGS -ledb" DATABASE="edb" AC_DEFINE([USE_EDB], [], [Use Edb])], +- [AC_MSG_RESULT([not found]), ++ [AC_MSG_RESULT([not found]) + AC_MSG_ERROR([please reinstall the Edb distribution])]) + elif test "z$DATABASE" = "zdb"; then + AC_CHECK_LIB(db, db_create, + [LDFLAGS="$LDFLAGS -ldb" DATABASE="db" AC_DEFINE([USE_DB], [], [Use Berkeley DB])], +- [AC_MSG_RESULT([not found]), ++ [AC_MSG_RESULT([not found]) + AC_MSG_ERROR([please reinstall the Berkeley DB distribution])]) + fi + fi diff --git a/print/panda/pkg-plist b/print/panda/pkg-plist index 5c79e32ba3f7..6ca144e6e446 100644 --- a/print/panda/pkg-plist +++ b/print/panda/pkg-plist @@ -3,9 +3,9 @@ include/panda/functions.h include/panda/legacy.h include/panda/objects.h lib/libpanda.a -lib/libpanda.la lib/libpanda.so lib/libpanda.so.0 +lib/libpanda.so.0.0.0 libdata/pkgconfig/panda.pc man/man3/panda_addchild.3.gz man/man3/panda_addcubiccurvesegment.3.gz |