2001-03-28 11:33:33 +02:00
|
|
|
# New ports collection makefile for: Panda
|
|
|
|
# Date created: 28 March 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= panda
|
2004-04-18 18:56:53 +02:00
|
|
|
PORTVERSION= 0.5.4
|
2006-02-23 11:40:44 +01:00
|
|
|
PORTREVISION= 1
|
2001-03-28 11:33:33 +02:00
|
|
|
CATEGORIES= print
|
2004-04-18 18:56:53 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
${MASTER_SITE_SAVANNAH} \
|
|
|
|
http://www.stillhq.com/panda/source/
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2001-03-28 11:33:33 +02:00
|
|
|
|
2002-01-16 11:43:52 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-04-18 18:56:53 +02:00
|
|
|
COMMENT= A PDF generation library
|
2001-03-28 11:33:33 +02:00
|
|
|
|
2007-06-29 10:32:36 +02:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2001-09-11 04:59:20 +02:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
2001-03-28 11:33:33 +02:00
|
|
|
tiff.4:${PORTSDIR}/graphics/tiff
|
|
|
|
|
2004-04-18 18:56:53 +02:00
|
|
|
USE_BZIP2= yes
|
2007-06-29 10:32:36 +02:00
|
|
|
USE_GNOME= gnomehack gnometarget pkgconfig
|
|
|
|
USE_BDB= yes
|
2001-03-28 11:33:33 +02:00
|
|
|
USE_GMAKE= yes
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2004-04-18 18:56:53 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
|
|
CONFIGURE_ARGS= --enable-berkeley-db
|
2006-08-15 02:56:24 +02:00
|
|
|
USE_LDCONFIG= yes
|
2001-03-28 11:33:33 +02:00
|
|
|
|
2007-06-29 10:32:36 +02:00
|
|
|
CPPFLAGS= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${BDB_LIB_DIR} -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2004-04-18 18:56:53 +02:00
|
|
|
|
2003-07-01 08:49:30 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-07-11 19:51:08 +02:00
|
|
|
post-extract:
|
|
|
|
.for file in config.sub config.guess
|
|
|
|
@${RM} ${WRKSRC}/config/${file} && ${TOUCH} ${WRKSRC}/config/${file}
|
|
|
|
.endfor
|
|
|
|
|
2003-07-01 08:49:30 +02:00
|
|
|
post-patch:
|
2004-04-18 18:56:53 +02:00
|
|
|
@${REINPLACE_CMD} -e 's| -lpanda| $$(top_srcdir)/libpanda.la|g' \
|
2003-07-01 08:49:30 +02:00
|
|
|
${WRKSRC}/examples/Makefile.in
|
|
|
|
|
2001-03-28 11:33:33 +02:00
|
|
|
post-install:
|
2002-04-20 17:29:47 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/panda_*.3 ${MANPREFIX}/man/man3
|
2001-03-28 11:33:33 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-01-30 03:57:45 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in AUTHORS CONTRIBUTORS ChangeLog DEV-HINTS README TODO UNDERWAY
|
2002-04-20 17:29:47 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
2001-03-28 11:33:33 +02:00
|
|
|
.endfor
|
2002-01-30 03:57:45 +01:00
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
2003-07-01 08:49:30 +02:00
|
|
|
.for f in IMAGES examples/*.c examples/c++/*.cpp examples/images/*.*
|
2002-04-20 17:29:47 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
|
2001-03-28 11:33:33 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2002-01-30 03:57:45 +01:00
|
|
|
.include "Makefile.man"
|
2003-07-01 08:49:30 +02:00
|
|
|
.include <bsd.port.post.mk>
|