561d6fe9bc
PLIST and remove remove everything under the @sample'd directory instead of the directory itself to prevent a warning from pkg_delete(1) trying to remove a non existing directory and to help preventing left-over files and directories.
43 lines
1019 B
Makefile
43 lines
1019 B
Makefile
# $OpenBSD: Makefile,v 1.18 2011/05/11 06:22:16 ajacoutot Exp $
|
|
|
|
COMMENT= opensource Napster(tm) server
|
|
|
|
DISTNAME= opennap-0.44
|
|
REVISION= 2
|
|
CATEGORIES= audio net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=opennap/}
|
|
|
|
HOMEPAGE= http://opennap.sourceforge.net/
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB= c z
|
|
|
|
SEPARATE_BUILD= concurrent
|
|
USE_GMAKE= Yes
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --enable-email \
|
|
--enable-resume \
|
|
--datadir=${SYSCONFDIR} \
|
|
--with-uid=_opennap \
|
|
--with-gid=_opennap
|
|
# --enable-chroot \ (breaks uid, gid, and ip lookup)
|
|
|
|
.if ${MACHINE_ARCH} == "vax"
|
|
CFLAGS+= -O0 # XXX compiler bugs
|
|
.endif
|
|
|
|
DOCS= FAQ README manual.html napster.txt
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/opennap
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/opennap
|
|
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/opennap
|
|
${INSTALL_DATA} ${WRKSRC}/sample.* ${PREFIX}/share/examples/opennap
|
|
|
|
.include <bsd.port.mk>
|