diff options
author | obache <obache@pkgsrc.org> | 2011-05-21 04:17:44 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-05-21 04:17:44 +0000 |
commit | 44abace2fe185ceeaddfb233810be661381790d0 (patch) | |
tree | 45e15f15a9eb96663e8d1a3a5909e5704da3c41c /net/gnugk | |
parent | 2e0a36238214054e327a6d0adb094b0fc4368aa0 (diff) | |
download | pkgsrc-44abace2fe185ceeaddfb233810be661381790d0.tar.gz |
Add destdir installation support.
Diffstat (limited to 'net/gnugk')
-rw-r--r-- | net/gnugk/Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/net/gnugk/Makefile b/net/gnugk/Makefile index 5e51fd7dc9d..7096c14a094 100644 --- a/net/gnugk/Makefile +++ b/net/gnugk/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2010/01/17 12:02:32 wiz Exp $ +# $NetBSD: Makefile,v 1.16 2011/05/21 04:17:44 obache Exp $ DISTNAME= gnugk-2.2.0 PKGREVISION= 4 @@ -10,13 +10,15 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://www.gnugk.org/ COMMENT= H.323 Gatekeeper +PKG_DESTDIR_SUPPORT= destdir + USE_LANGUAGES= c c++ USE_LIBTOOL= yes USE_TOOLS+= gmake GNU_CONFIGURE= yes -CONFIGURE_ENV+= ac_cv_path_PTLIB_CONFIG=${PREFIX}/bin/ptlib-config -CONFIGURE_ENV+= PWLIBDIR=${PREFIX}/share/pwlib -CONFIGURE_ENV+= OPENH323DIR=${PREFIX}/share/openh323 +CONFIGURE_ENV+= ac_cv_path_PTLIB_CONFIG=${BUILDLINK_PREFIX.pwlib}/bin/ptlib-config +CONFIGURE_ENV+= PWLIBDIR=${BUILDLINK_PREFIX.pwlib}/share/pwlib +CONFIGURE_ENV+= OPENH323DIR=${BUILDLINK_PREFIX.openh323}/share/openh323 CFLAGS+= -fexceptions MAKE_ENV+= LIBTOOL=${LIBTOOL:Q} SYSLIBDIR="${PREFIX}/lib" @@ -25,13 +27,16 @@ PKG_SYSCONFSUBDIR= ${PKGBASE} EGDIR= ${PREFIX}/share/examples/${PKGBASE} RCD_SCRIPTS= gnugk +INSTALL_MAKE_FLAGS+= INSTALL_DIR=${DESTDIR}${PREFIX} +INSTALLATION_DIRS+= bin + post-install: - ${INSTALL_DATA_DIR} ${EGDIR} - ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGBASE} + ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE} cd ${WRKSRC}/docs; for f in `find . -type f -print` ; do \ - ${INSTALL_DATA} $$f ${PREFIX}/share/doc/${PKGBASE}; done + ${INSTALL_DATA} $$f ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}; done cd ${WRKSRC}/etc; for f in `find . -type f -print` ; do \ - ${INSTALL_DATA} $$f ${EGDIR}; done + ${INSTALL_DATA} $$f ${DESTDIR}${EGDIR}; done .include "../../net/openh323/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |