Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2014 20:14:17 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r367603 - in head/print/panda: . files
Message-ID:  <201409072014.s87KEHTD083567@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Sun Sep  7 20:14:17 2014
New Revision: 367603
URL: http://svnweb.freebsd.org/changeset/ports/367603
QAT: https://qat.redports.org/buildarchive/r367603/

Log:
  - Convert to USES=libtool and add INSTALL_TARGET=install-strip
  - Add USE_AUTOTOOLS=libtoolize (and others) because ltmain.sh is a symlink

Added:
  head/print/panda/files/patch-configure.in   (contents, props changed)
Modified:
  head/print/panda/Makefile
  head/print/panda/pkg-plist

Modified: head/print/panda/Makefile
==============================================================================
--- head/print/panda/Makefile	Sun Sep  7 20:05:37 2014	(r367602)
+++ head/print/panda/Makefile	Sun Sep  7 20:14:17 2014	(r367603)
@@ -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}/grap
 		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

Added: head/print/panda/files/patch-configure.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/print/panda/files/patch-configure.in	Sun Sep  7 20:14:17 2014	(r367603)
@@ -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

Modified: head/print/panda/pkg-plist
==============================================================================
--- head/print/panda/pkg-plist	Sun Sep  7 20:05:37 2014	(r367602)
+++ head/print/panda/pkg-plist	Sun Sep  7 20:14:17 2014	(r367603)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409072014.s87KEHTD083567>