aboutsummaryrefslogtreecommitdiff
path: root/net/minisapserver/Makefile
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-05-25 09:17:51 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-05-25 09:17:51 +0000
commit092124470bd598a7373693de2d97a5091e74d063 (patch)
tree5250886b440f352b9b8dc3d764d1e4b598040565 /net/minisapserver/Makefile
parent4908a0b6b7d0c622227b5be985ca63195634827a (diff)
Add minisapserver 0.2.3, SAP and SLP announcement for the VLC Media
Player. PR: ports/67162 Submitted by: michael johnson <ahze@ahze.net>
Notes
Notes: svn path=/head/; revision=109949
Diffstat (limited to 'net/minisapserver/Makefile')
-rw-r--r--net/minisapserver/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/net/minisapserver/Makefile b/net/minisapserver/Makefile
new file mode 100644
index 000000000000..864666d09e81
--- /dev/null
+++ b/net/minisapserver/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: minisapserver
+# Date created: 2004-05-25
+# Whom: michael johnson <ahze@ahze.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= minisapserver
+PORTVERSION= 0.2.3
+CATEGORIES= net multimedia
+MASTER_SITES= http://download.videolan.org/pub/videolan/miniSAPserver/${PORTVERSION}/
+DISTNAME= miniSAPserver-${PORTVERSION}
+
+MAINTAINER= ahze@ahze.net
+COMMENT= SAP and SLP announcement for the VLC Media Player
+
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+USE_GMAKE= yes
+MAN1= sapserver.1
+PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README
+PLIST_FILES= bin/sapserver etc/sap.cfg-dist etc/rc.d/sapserver.sh
+RC_SUBR?= /etc/rc.subr
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|$$(prefix)/share/man|${MANPREFIX}/man|; \
+ s|$$(prefix)/share/doc/sapserver|${DOCSDIR}|; \
+ s|sap.cfg|sap.cfg-dist|' \
+ ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|XFLAGS="-Wall|XFLAGS="${CXXFLAGS}|' \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|/etc/sap.cfg|${PREFIX}/etc/sap.cfg|' \
+ ${WRKSRC}/sapserver.h
+ @${SED} -e 's|/usr/local|${PREFIX}|' \
+ ${PKGDIR}/pkg-message >${PKGMESSAGE}
+ @${SED} -e 's|%%PREFIX%%|${PREFIX}|; s|%%RC_SUBR%%|${RC_SUBR}|' \
+ ${FILESDIR}/sapserver.sh >${WRKDIR}/sapserver.sh
+ @${CP} -f ${WRKSRC}/sap.cfg ${WRKSRC}/sap.cfg-dist
+.if defined(NOPORTDOCS)
+ @${REINPLACE_CMD} -e 's|${PORTDOCS}||' \
+ ${WRKSRC}/Makefile.in
+.endif
+
+post-install:
+ @${INSTALL_SCRIPT} ${WRKDIR}/sapserver.sh ${PREFIX}/etc/rc.d/
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>