View | Details | Raw Unified | Return to bug 73724
Collapse All | Expand All

(-)Makefile (-11 / +8 lines)
Lines 14-22 Link Here
14
MAINTAINER=	daniel@roe.ch
14
MAINTAINER=	daniel@roe.ch
15
COMMENT=	Sender Policy Framework (SPF) library and client
15
COMMENT=	Sender Policy Framework (SPF) library and client
16
16
17
# Require getopt_long_only - USE_GETOPT_LONG is *not* sufficient
17
USE_GETOPT_LONG=yes
18
LIB_DEPENDS=	gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
19
20
USE_BZIP2=	yes
18
USE_BZIP2=	yes
21
WRKSRC=		${WRKDIR}/${PORTNAME}.25
19
WRKSRC=		${WRKDIR}/${PORTNAME}.25
22
USE_GMAKE=	yes
20
USE_GMAKE=	yes
Lines 24-31 Link Here
24
INSTALLS_SHLIB=	yes
22
INSTALLS_SHLIB=	yes
25
LIBSPF_REV=	1
23
LIBSPF_REV=	1
26
PLIST_SUB=	PORTNAME=${PORTNAME} LIBSPF_REV=${LIBSPF_REV}
24
PLIST_SUB=	PORTNAME=${PORTNAME} LIBSPF_REV=${LIBSPF_REV}
27
MAKE_ENV=	CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
25
CPPFLAGS+=	-Dgetopt_long_only=getopt_long
28
		LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -L${WRKSRC}"
26
LDFLAGS+=	-L${WRKSRC}
29
27
30
# Supported tunables:
28
# Supported tunables:
31
#
29
#
Lines 70-87 Link Here
70
	    -e 's,^CFLAGS:=.*,CFLAGS+=-Wall -D_BSD_SOURCE ${SPF_CFLAGS},' \
68
	    -e 's,^CFLAGS:=.*,CFLAGS+=-Wall -D_BSD_SOURCE ${SPF_CFLAGS},' \
71
	    -e 's/^CPPFLAGS:=/#CPPFLAGS:=/' \
69
	    -e 's/^CPPFLAGS:=/#CPPFLAGS:=/' \
72
	    -e 's/^LDFLAGS:=/#LDFLAGS:=/' \
70
	    -e 's/^LDFLAGS:=/#LDFLAGS:=/' \
73
	    -e 's/make/gmake/g' \
71
	    -e 's/make /${GMAKE} /g' \
74
	    -e 's/-lresolv//g' \
72
	    -e 's/-lresolv//g' \
75
	    -e 's/libspf.a : -lc/libspf.a :/g' \
73
	    -e 's/libspf.a : -lc/libspf.a :/g' \
76
	    -e 's/libspf\.so\.1\.0\.1/libspf.so.${LIBSPF_REV}/g' \
74
	    -e 's/libspf\.so\.1\.0\.1/libspf.so.${LIBSPF_REV}/g' \
77
	    -e 's/-soname,libspf\.so\.1/-soname,libspf.so.${LIBSPF_REV}/g' \
75
	    -e 's/-soname,libspf\.so\.1/-soname,libspf.so.${LIBSPF_REV}/g' \
78
	    ${WRKSRC}/Makefile
76
	    ${WRKSRC}/Makefile
79
	@${REINPLACE_CMD} \
77
	@${REINPLACE_CMD} \
80
	    -e 's/^CFLAGS:=/#CFLAGS:=/' \
78
	    -e 's,^CFLAGS:=,CFLAGS:=${CFLAGS} ${CPPFLAGS},' \
81
	    -e 's/^CPPFLAGS:=/#CPPFLAGS:=/' \
79
	    -e 's,^CPPFLAGS:=,CPPFLAGS:=${CPPFLAGS},' \
82
	    -e 's/^LDFLAGS:=/#LDFLAGS:=/' \
80
	    -e 's,^LDFLAGS:=.*,LDFLAGS=${LDFLAGS},' \
83
	    -e 's/make/gmake/g' \
81
	    -e 's/make /${GMAKE} /g' \
84
	    -e 's/\(-o spfquery ..\)/\1 -lgnugetopt/g' \
85
	    -e 's/-o spfquery/-o spfquery-${PORTNAME}/g' \
82
	    -e 's/-o spfquery/-o spfquery-${PORTNAME}/g' \
86
	    ${WRKSRC}/tools/Makefile
83
	    ${WRKSRC}/tools/Makefile
87
	@${REINPLACE_CMD} \
84
	@${REINPLACE_CMD} \

Return to bug 73724