aboutsummaryrefslogtreecommitdiff
path: root/net/minisapserver
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-05-30 17:13:06 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-05-30 17:13:06 +0000
commit8ce05bc8de34c645d7dd27b0ec41d0cb503f8035 (patch)
tree635543a6747b8b66c85127a7895a1e77542d6aec /net/minisapserver
parent1d13cfa03d4fe03eae851f6c8b412bb58c672959 (diff)
downloadports-8ce05bc8de34c645d7dd27b0ec41d0cb503f8035.tar.gz
ports-8ce05bc8de34c645d7dd27b0ec41d0cb503f8035.zip
Notes
Diffstat (limited to 'net/minisapserver')
-rw-r--r--net/minisapserver/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/net/minisapserver/Makefile b/net/minisapserver/Makefile
index 68729ac87617..5544daf84140 100644
--- a/net/minisapserver/Makefile
+++ b/net/minisapserver/Makefile
@@ -22,22 +22,21 @@ MAN1= sapserver.1
PLIST_FILES= bin/sapserver etc/sap.cfg-dist
USE_RC_SUBR= sapserver
SUB_FILES= pkg-message
-OPTIONS= SLP "Enable SLP support via openslp" off
+OPTIONS_DEFINE= SLP
+SLP_DESC= "Enable SLP support via openslp"
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.options.mk>
-.if defined(WITH_SLP)
+.if ${PORT_OPTIONS:MSLP}
LIB_DEPENDS+= slp.1:${PORTSDIR}/net/openslp
CONFIGURE_ARGS+=--enable-slp
.else
CONFIGURE_ARGS+=--disable-slp
.endif
-.include <bsd.port.pre.mk>
-
post-patch:
@${REINPLACE_CMD} -e 's|$$(prefix)/share/man|${MANPREFIX}/man|; \
s|$$(prefix)/share/doc/sapserver|${DOCSDIR}|; \
@@ -53,4 +52,4 @@ post-patch:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>