summaryrefslogtreecommitdiff
path: root/multimedia/ushare/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/ushare/Makefile')
-rw-r--r--multimedia/ushare/Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/multimedia/ushare/Makefile b/multimedia/ushare/Makefile
new file mode 100644
index 00000000000..b41a39f7d16
--- /dev/null
+++ b/multimedia/ushare/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/05/23 08:18:04 obache Exp $
+#
+
+DISTNAME= ushare-1.1a
+CATEGORIES= net multimedia
+MASTER_SITES= http://ushare.geexbox.org/releases/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://ushare.geexbox.org/
+COMMENT= UPnP AV Mediaserver
+LICENSE= gnu-gpl-v2
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+USE_LANGUAGES= c c++
+USE_PKGINSTALL= yes
+USE_TOOLS+= gmake pkg-config
+
+HAS_CONFIGURE= yes
+
+CONFIGURE_ARGS+= --prefix=${PREFIX}
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
+CONFIGURE_ARGS+= --with-libupnp-dir=${BUILDLINK_PREFIX.libupnp}
+CONFIGURE_ARGS+= --enable-dlna
+CONFIGURE_ARGS+= --with-libdlna-dir=${BUILDLINK_PREFIX.libdlna}
+
+BROKEN_GETTEXT_DETECTION= yes
+
+CONF_FILES= ${PREFIX}/share/examples/ushare/ushare.conf ${PKG_SYSCONFDIR}/ushare.conf
+RCD_SCRIPTS= ushare
+
+INSTALL_MAKE_FLAGS+= sysconfdir=${DESTDIR}${PREFIX}/share/examples/ushare
+
+INSTALLATION_DIRS+= ${PKGMANDIR}/man1
+
+post-install:
+ ${INSTALL_MAN} ${WRKSRC}/src/ushare.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../net/libdlna/buildlink3.mk"
+.include "../../net/libupnp/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"