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 | |
parent | 2de69d0a5ede0dce4009600a1772e903bdff693c (diff) | |
download | ports-531a30ff858b2cfa08dc0f32d91dfc5bd9e06bcd.tar.gz ports-531a30ff858b2cfa08dc0f32d91dfc5bd9e06bcd.zip |
Notes
Diffstat (limited to 'print')
-rw-r--r-- | print/pnm2ppa/Makefile | 9 | ||||
-rw-r--r-- | print/pnm2ppa/files/patch-aa | 4 |
2 files changed, 10 insertions, 3 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 diff --git a/print/pnm2ppa/files/patch-aa b/print/pnm2ppa/files/patch-aa index c0d7c51074f0..8813af595200 100644 --- a/print/pnm2ppa/files/patch-aa +++ b/print/pnm2ppa/files/patch-aa @@ -16,8 +16,8 @@ -CFLAGS=-Wall -pedantic -O2 -LDFLAGS=-lm +CC?=gcc -+CFLAGS+=-DCONFDIR=\"$(CONFDIR)\" -I${LOCALBASE}/include -+LDFLAGS=-lm -L${LOCALBASE}/lib -lgnugetopt ++CFLAGS+=-DCONFDIR=\"$(CONFDIR)\" ++LDFLAGS+=-lm INSTALL=install # Install under Linux and other versions with the -b (backup) option |