aboutsummaryrefslogtreecommitdiff
path: root/mail/libspf
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2004-11-18 14:03:47 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2004-11-18 14:03:47 +0000
commit3a5df6cf3417e384786991106aaa347f47ce8096 (patch)
tree1b9cd92d8f4d913a7c813859662292aa459d2bf6 /mail/libspf
parent6d5b476e82e002dc083abbb5109c70440ca053f2 (diff)
downloadports-3a5df6cf3417e384786991106aaa347f47ce8096.tar.gz
ports-3a5df6cf3417e384786991106aaa347f47ce8096.zip
- define getopt_long_only as getopt_long and remove dependency on libgnugetopt
PR: 73724 Submitted by: leeym Reviewed by: maintainer (daniel@roe.ch)
Notes
Notes: svn path=/head/; revision=121869
Diffstat (limited to 'mail/libspf')
-rw-r--r--mail/libspf/Makefile20
1 files changed, 9 insertions, 11 deletions
diff --git a/mail/libspf/Makefile b/mail/libspf/Makefile
index b1ceb4bf8714..4ce6f5db2c92 100644
--- a/mail/libspf/Makefile
+++ b/mail/libspf/Makefile
@@ -14,9 +14,7 @@ DISTNAME= ${PORTNAME}.${PORTVERSION}eta
MAINTAINER= daniel@roe.ch
COMMENT= Sender Policy Framework (SPF) library and client
-# Require getopt_long_only - USE_GETOPT_LONG is *not* sufficient
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-
+USE_GETOPT_LONG=yes
USE_BZIP2= yes
WRKSRC= ${WRKDIR}/${PORTNAME}.25
USE_GMAKE= yes
@@ -24,8 +22,7 @@ USE_REINPLACE= yes
INSTALLS_SHLIB= yes
LIBSPF_REV= 1
PLIST_SUB= PORTNAME=${PORTNAME} LIBSPF_REV=${LIBSPF_REV}
-MAKE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
- LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${WRKSRC}"
+LDFLAGS+= -L${WRKSRC}
# Supported tunables:
#
@@ -70,18 +67,17 @@ post-patch:
-e 's,^CFLAGS:=.*,CFLAGS+=-Wall -D_BSD_SOURCE ${SPF_CFLAGS},' \
-e 's/^CPPFLAGS:=/#CPPFLAGS:=/' \
-e 's/^LDFLAGS:=/#LDFLAGS:=/' \
- -e 's/make/gmake/g' \
+ -e 's/make /${GMAKE} /g' \
-e 's/-lresolv//g' \
-e 's/libspf.a : -lc/libspf.a :/g' \
-e 's/libspf\.so\.1\.0\.1/libspf.so.${LIBSPF_REV}/g' \
-e 's/-soname,libspf\.so\.1/-soname,libspf.so.${LIBSPF_REV}/g' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} \
- -e 's/^CFLAGS:=/#CFLAGS:=/' \
- -e 's/^CPPFLAGS:=/#CPPFLAGS:=/' \
- -e 's/^LDFLAGS:=/#LDFLAGS:=/' \
- -e 's/make/gmake/g' \
- -e 's/\(-o spfquery ..\)/\1 -lgnugetopt/g' \
+ -e 's,^CFLAGS:=,CFLAGS:=${CFLAGS} ${CPPFLAGS},' \
+ -e 's,^CPPFLAGS:=,CPPFLAGS:=${CPPFLAGS},' \
+ -e 's,^LDFLAGS:=.*,LDFLAGS=${LDFLAGS},' \
+ -e 's/make /${GMAKE} /g' \
-e 's/-o spfquery/-o spfquery-${PORTNAME}/g' \
${WRKSRC}/tools/Makefile
@${REINPLACE_CMD} \
@@ -93,6 +89,8 @@ post-patch:
${WRKSRC}/util.h
@${REINPLACE_CMD} \
-e 's/spfquery /spfquery-${PORTNAME} /' \
+ -e 's/getopt_long_only/getopt_long/g' \
+ -E -e '/stderr/s/ -([a-z]{2,})/ --\1/g' \
${WRKSRC}/tools/spfquery.c
post-build: