pkgsrc-wip/gforge/Makefile
Juan Romero Pardines 18531e6421 Initial import of gforge, provided by David Ferlier in PR pkg/24180.
GForge is an Open Source collaborative software development tool, 
which allows you to organize and manage any number of software 
development projects. It's perfect for managing large teams of 
software engineers and/or engineers scattered among multiple 
locations.
2004-03-27 22:53:22 +00:00

101 lines
3.1 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2004/03/27 22:53:30 xtraeme Exp $
DISTNAME= gforge-3.1
CATEGORIES= www
MASTER_SITES= http://gforge.org/download.php/44/
MAINTAINER= david@netbsd-fr.org
COMMENT= Open Source collaborative software development tool
HOMEPAGE= http://www.gforge.org/
USE_PERL5= YES
NO_BUILD= YES
DEPENDS+= wget>=1.9:../../net/wget
DEPENDS+= ap-php>=4.3:../../www/ap-php4
DEPENDS+= php-jpgraph>=1.12:../../wip/php-jpgraph
DEPENDS+= php-pgsql>=4.3:../../databases/php4-pgsql
USE_BUILDLINK2= YES
ETCDIR= ${PKG_SYSCONFDIR}/gforge
DATADIR= ${PREFIX}/share/gforge
BACKENDDIR= ${DATADIR}/backends
DOCDIR= ${PREFIX}/share/doc/gforge
SUBST_CLASSES+= cli
SUBST_STAGE.cli= post-patch
SUBST_FILES.cli= `${FIND} ${WRKSRC} -name "*.php"`
SUBST_SED.cli= -e "s|/usr/bin/php4|${PREFIX}/bin/php|" \
-e "s|/usr/bin/php|${PREFIX}/bin/php|"
SUBST_CLASSES+= patches
SUBST_STAGE.patches= post-patch
SUBST_FILES.patches= `${FIND} ${WRKSRC} -name "*.patch"`
SUBST_SED.patches= -e "s|/usr/bin/php4|${PREFIX}/bin/php|" \
-e "s|/usr/bin/php|${PREFIX}/bin/php|"
SUBST_CLASSES+= pscripts
SUBST_STAGE.pscripts= post-patch
SUBST_FILES.pscripts= `${FIND} ${WRKSRC} -name "*.pl"`
SUBST_FILES.pscipts+= ${WRKSRC}/utils/groupCreator \
${WRKSRC}/utils/ldap/ldap-clean \
${WRKSRC}/utils/ldap/ldap-del-user \
${WRKSRC}/utils/ldap/ldap-dump \
${WRKSRC}/utils/ldap/ldap-import \
${WRKSRC}/utils/ldap/ldap-check-replica \
${WRKSRC}/monitor/systemdaemon
SUBST_SED.pscripts= -e "s|/usr/bin/perl|${PERL5}|"
SUBST_CLASSES+= wget
SUBST_STAGE.wget= post-patch
SUBST_FILES.wget= ${WRKSRC}/utils/mailing_lists_create.pl
SUBST_SED.wget= -e "s|/usr/bin/wget|${PREFIX}/bin/wget|"
SUBST_CLASSES+= sdaemon
SUBST_STAGE.sdaemon= post-patch
SUBST_FILES.sdaemon= ${WRKSRC}/utils/mailing_lists_create.pl
SUBST_SED.sdaemon= -e "s|/usr/bin:/usr/games:/bin|${PATH}|"
SUBST_CLASSES+= etcdir
SUBST_STAGE.etcdir= post-patch
SUBST_FILES.etcdir= ${WRKSRC}/backend/include.pl \
${WRKSRC}/utils/include.pl \
${WRKSRC}/www/include/BaseLanguage.class \
${WRKSRC}/www/include/pre.php \
${WRKSRC}/www/include/squal_pre.php
SUBST_SED.etcdir= -e "s|/etc/gforge|${ETCDIR}|g"
SUBST_CLASSES+= crontabs
SUBST_STAGE.crontabs= post-configure
SUBST_FILES.crontabs= ${WRKSRC}/cronjobs/README \
${WRKSRC}/cronjobs/README.root
SUBST_SED.crontabs= -e "s|~/alexandria|${BACKENDDIR}|g"
do-install:
${FIND} ${WRKSRC} -name "*.subst.sav" -exec ${RM} {} \;
${INSTALL_DATA_DIR} ${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/contrib/autoconf/local.inc.in \
${ETCDIR}/local.inc-dist
${INSTALL_DATA_DIR} ${DATADIR}
.for dir in common www
${INSTALL_DATA_DIR} ${DATADIR}/${dir}
${CP} -R ${WRKSRC}/${dir}/* ${DATADIR}/${dir}
.endfor
.for dir in backend cronjobs monitor utils
${INSTALL_DATA_DIR} ${BACKENDDIR}/${dir}
${CP} -R ${WRKSRC}/${dir}/* ${BACKENDDIR}/${dir}
.endfor
.for dir in contrib db
${INSTALL_DATA_DIR} ${DATADIR}/${dir}
${CP} -R ${WRKSRC}/${dir}/* ${DATADIR}/${dir}
.endfor
${INSTALL_DATA_DIR} ${DOCDIR}
${CP} -R ${WRKSRC}/docs/* ${DOCDIR}
.include "../../databases/postgresql-lib/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"