Skip to content

Commit

Permalink
Convert to user-destdir.
Browse files Browse the repository at this point in the history
  • Loading branch information
wiz committed Jul 23, 2009
1 parent a36f6b4 commit b1215a3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions multimedia/mediatomb/Makefile
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2009/07/23 08:28:41 tron Exp $
# $NetBSD: Makefile,v 1.12 2009/07/23 12:36:56 wiz Exp $

DISTNAME= mediatomb-0.11.0
PKGREVISION= 6
Expand All @@ -10,6 +10,8 @@ HOMEPAGE= http://mediatomb.cc/
COMMENT= UPnP MediaServer with a web user interface
LICENSE= gnu-gpl-v2

PKG_DESTDIR_SUPPORT= user-destdir

GNU_CONFIGURE= yes

USE_LANGUAGES+= c c++
Expand Down Expand Up @@ -42,7 +44,7 @@ SUBST_FILES.config= config.xml mediatomb.desktop
SUBST_VARS.config= MEDIATOMB_HOME PREFIX OPSYS
SUBST_STAGE.config= post-patch

INSTALLATION_DIRS+= share/applications
INSTALLATION_DIRS+= share/applications share/examples/mediatomb

post-extract:
${CP} ${FILESDIR}/config.xml.in ${WRKSRC}/config.xml
Expand All @@ -52,9 +54,9 @@ pre-configure:
cd ${WRKSRC} && autoreconf -i

post-install:
${INSTALL_DATA_DIR} ${EGDIR}
${INSTALL_DATA} ${WRKSRC}/config.xml ${EGDIR}/config.xml
${INSTALL_DATA} ${WRKSRC}/mediatomb.desktop ${PREFIX}/share/applications/mediatomb.desktop
${INSTALL_DATA} ${WRKSRC}/config.xml ${DESTDIR}${EGDIR}/config.xml
${INSTALL_DATA} ${WRKSRC}/mediatomb.desktop \
${DESTDIR}${PREFIX}/share/applications/mediatomb.desktop

PREFER.bind= pkgsrc # we need the package for the lwres lib

Expand Down

0 comments on commit b1215a3

Please sign in to comment.