aboutsummaryrefslogtreecommitdiffstats
path: root/print/pnm2ppa
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2003-05-19 00:03:16 +0800
committerpetef <petef@FreeBSD.org>2003-05-19 00:03:16 +0800
commit54b4063cec319dac240785ffe33fcd1f5b6ca137 (patch)
tree8f9ac94e89713c171cc8e976c28e5ff81427f733 /print/pnm2ppa
parent0fedbb493ef2525e061daf8022932e02fafe1aa0 (diff)
downloadfreebsd-ports-gnome-54b4063cec319dac240785ffe33fcd1f5b6ca137.tar.gz
freebsd-ports-gnome-54b4063cec319dac240785ffe33fcd1f5b6ca137.tar.zst
freebsd-ports-gnome-54b4063cec319dac240785ffe33fcd1f5b6ca137.zip
Use USE_GETOPT_LONG.
PR: 51387, 51383, 51380, 51388, 51384, 51372, 51373, 51381, 51382 Submitted by: Ports Fury
Diffstat (limited to 'print/pnm2ppa')
-rw-r--r--print/pnm2ppa/Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/print/pnm2ppa/Makefile b/print/pnm2ppa/Makefile
index f307df4608e1..87935e27bfdd 100644
--- a/print/pnm2ppa/Makefile
+++ b/print/pnm2ppa/Makefile
@@ -17,16 +17,12 @@ COMMENT= Convert PNM images to PPA for some HP printers
RUN_DEPENDS= gs:${PORTSDIR}/print/ghostscript-gnu \
enscript:${PORTSDIR}/print/enscript-letter
+USE_GETOPT_LONG= yes
MAKE_ENV= LDFLAGS="${LDFLAGS}"
+CFLAGS+= ${CPPFLAGS}
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