1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/print/panda/Makefile
Tobias Kortkamp 1e2dd0bc6c print/panda: Unbreak build on FreeBSD >= 12.1
ld: error: /wrkdirs/usr/ports/print/panda/work/panda-0.5.4/.libs/libpanda.so: undefined reference to compress2

http://beefy6.nyi.freebsd.org/data/121amd64-default/529299/logs/errors/panda-0.5.4_9.log

Explicitly link with zlib.
2020-03-30 08:31:12 +00:00

44 lines
1.1 KiB
Makefile

# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= panda
PORTVERSION= 0.5.4
PORTREVISION= 10
CATEGORIES= print
MASTER_SITES= SF \
SAVANNAH \
http://www.stillhq.com/panda/source/
MAINTAINER= ports@FreeBSD.org
COMMENT= PDF generation library
LICENSE= GPLv2 LGPL21
LICENSE_COMB= dual
LIB_DEPENDS= libpng.so:graphics/png \
libtiff.so:graphics/tiff
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-berkeley-db
CPPFLAGS+= -I${BDB_INCLUDE_DIR} -I${LOCALBASE}/include
LIBS+= -lz -L${BDB_LIB_DIR} -L${LOCALBASE}/lib
INSTALL_TARGET= install-strip
USES= autoreconf bdb dos2unix gmake jpeg libtool pathfix pkgconfig tar:bzip2
DOS2UNIX_GLOB= *.c
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS EXAMPLES
post-install:
${INSTALL_MAN} ${WRKSRC}/man/panda_*.3 ${STAGEDIR}${MANPREFIX}/man/man3
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in AUTHORS CONTRIBUTORS ChangeLog DEV-HINTS README TODO UNDERWAY
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for f in IMAGES examples/*.c examples/c++/*.cpp examples/images/*.*
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>