91faa22c52
parameter to daemonize, move the parameter from daemon to daemon_flags, so that the user cannot inadvertently prevent it from daemonizing by adjusting the flags. Discussed with ajacoutot and schwarze, this method was suggested by schwarze@ as a simpler alternative to my diff. ok aja@
50 lines
997 B
Makefile
Executable File
50 lines
997 B
Makefile
Executable File
# $OpenBSD: Makefile,v 1.10 2011/12/17 22:01:13 sthen Exp $
|
|
|
|
COMMENT= UPnP A/V media server
|
|
|
|
DISTNAME= ushare-1.1a
|
|
REVISION= 5
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
CATEGORIES= net multimedia
|
|
|
|
HOMEPAGE= http://ushare.geexbox.org/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# GPLv2
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
WANTLIB += c pthread ixml threadutil upnp
|
|
|
|
MASTER_SITES= ${HOMEPAGE}releases/
|
|
|
|
MODULES= devel/gettext
|
|
|
|
LIB_DEPENDS= net/libupnp
|
|
|
|
USE_GMAKE= Yes
|
|
NO_REGRESS= Yes
|
|
|
|
CONFIGURE_STYLE= simple
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lintl -liconv"
|
|
CONFIGURE_ARGS= --sysconfdir=${SYSCONFDIR} \
|
|
--with-libupnp-dir=${LOCALBASE}/lib \
|
|
--disable-optimize \
|
|
--disable-dlna
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include -I${WRKSRC} -DBSD -D__unix__
|
|
|
|
FAKE_FLAGS= sysconfdir=${WRKINST}${PREFIX}/share/examples/ushare
|
|
|
|
.ifdef DEBUG
|
|
CONFIGURE_ARGS+= --enable-debug
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|