diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-02-02 14:46:15 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-02-02 14:46:15 +0000 |
commit | 531a30ff858b2cfa08dc0f32d91dfc5bd9e06bcd (patch) | |
tree | eed8f407ca1b3a10f43c49c3b0e36106c952f44c /print/pnm2ppa/Makefile | |
parent | 2de69d0a5ede0dce4009600a1772e903bdff693c (diff) |
Notes
Diffstat (limited to 'print/pnm2ppa/Makefile')
-rw-r--r-- | print/pnm2ppa/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/print/pnm2ppa/Makefile b/print/pnm2ppa/Makefile index 353db969c425..201fa05ad05e 100644 --- a/print/pnm2ppa/Makefile +++ b/print/pnm2ppa/Makefile @@ -13,12 +13,19 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org -LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu \ enscript:${PORTSDIR}/print/enscript-letter +MAKE_ENV= LDFLAGS="${LDFLAGS}" + MAN1= pnm2ppa.1 +.if !exists(/usr/include/getopt.h) +LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt +CFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt +.endif + post-patch: @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \ ${WRKSRC}/pnm2ppa.conf > ${WRKSRC}/pnm2ppa.conf.sample |