Add destdir installation support.
This commit is contained in:
parent
c6028711c9
commit
6fb14cc2cd
1 changed files with 13 additions and 8 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue