diff options
Diffstat (limited to 'net/mediatomb/Makefile')
-rw-r--r-- | net/mediatomb/Makefile | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/net/mediatomb/Makefile b/net/mediatomb/Makefile index 447ac10112ce..00b615371243 100644 --- a/net/mediatomb/Makefile +++ b/net/mediatomb/Makefile @@ -10,39 +10,30 @@ MASTER_SITES= SF/${PORTNAME}/MediaTomb/${PORTVERSION} MAINTAINER= leo@mediatomb.cc COMMENT= UPnP AV MediaServer -BROKEN= Fails to configure, does not use USERS/GROUPS +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -lpthread +LDFLAGS+= -lpthread -L${LOCALBASE}/lib ${ICONV_LIB} CONFIGURE_ARGS= --with-search="${LOCALBASE}" \ --disable-inotify CONFIGURE_ENV= PTHREAD_LIBS="-lpthread" -USES= iconv +USES= compiler:gcc-c++11-lib iconv USE_RC_SUBR= mediatomb -# --- configurable variables --- -MEDIATOMB_USER?= mediatomb -MEDIATOMB_GROUP?= mediatomb -MEDIATOMB_DIR?= /var/mediatomb -MEDIATOMB_MASK?= 750 -# --- +USERS= mediatomb +GROUPS= ${USERS} SUB_FILES= config.xml.dist \ pkg-install \ pkg-deinstall -SUB_LIST= MEDIATOMB_USER=${MEDIATOMB_USER} \ - MEDIATOMB_GROUP=${MEDIATOMB_GROUP} \ - MEDIATOMB_DIR=${MEDIATOMB_DIR} \ - MEDIATOMB_MASK=${MEDIATOMB_MASK} - -PLIST_SUB= MEDIATOMB_USER=${MEDIATOMB_USER} \ - MEDIATOMB_GROUP=${MEDIATOMB_GROUP} \ - MEDIATOMB_DIR=${MEDIATOMB_DIR} \ - MEDIATOMB_MASK=${MEDIATOMB_MASK} \ +SUB_LIST= MEDIATOMB_USER=${USERS} \ + MEDIATOMB_GROUP=${GROUPS} \ + MEDIATOMB_DIR=${DESTDIR}/var/db/mediatomb OPTIONS_DEFINE= JS LIBEXIF FFMPEGTHUMBNAILER \ EXTERNAL_TRANSCODING CURL DEBUG @@ -164,11 +155,10 @@ CONFIGURE_ARGS+= --enable-tombdebug CONFIGURE_ARGS+= --disable-tombdebug .endif -pre-install: - PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - post-install: - @${MKDIR} -m ${MEDIATOMB_MASK} -p ${STAGEDIR}${PREFIX}/etc/mediatomb + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/mediatomb + ${MKDIR} ${STAGEDIR}/var/log/mediatomb + ${MKDIR} ${STAGEDIR}/var/db/mediatomb @${INSTALL} ${COPY} ${WRKDIR}/config.xml.dist ${STAGEDIR}${PREFIX}/etc/mediatomb/config.xml.dist .include <bsd.port.post.mk> |