Add user-destdir installation support.

This commit is contained in:
obache 2011-03-17 11:38:42 +00:00
parent a671cc71a9
commit 09f11e6d7b

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2009/09/02 08:34:16 wiz Exp $
# $NetBSD: Makefile,v 1.10 2011/03/17 11:38:42 obache Exp $
DISTNAME= firefox-bin-realplayer-1.0
PKGREVISION= 4
@ -12,6 +12,8 @@ COMMENT= RealAudio and RealVideo player plugin for firefox-bin
DEPENDS+= firefox-bin>=0.8:../../www/firefox-bin
DEPENDS+= RealPlayerGold-[0-9]*:../../multimedia/RealPlayerGold
PKG_DESTDIR_SUPPORT= user-destdir
EMUL_PLATFORMS= linux-i386
WRKSRC= ${WRKDIR}
@ -21,7 +23,7 @@ NS_PLUGINS_DIR= ${PREFIX}/lib/firefox-linux/plugins
PLUGIN_SOURCE= ${PREFIX}/lib/RealPlayer/mozilla/nphelix.so
do-install:
${INSTALL_DATA_DIR} ${NS_PLUGINS_DIR}
${LN} -s ${PLUGIN_SOURCE} ${NS_PLUGINS_DIR}/nphelix.so
${INSTALL_DATA_DIR} ${DESTDIR}${NS_PLUGINS_DIR}
${LN} -s ${PLUGIN_SOURCE} ${DESTDIR}${NS_PLUGINS_DIR}/nphelix.so
.include "../../mk/bsd.pkg.mk"