diff options
author | marino <marino@FreeBSD.org> | 2013-07-21 21:03:48 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2013-07-21 21:03:48 +0800 |
commit | 6b67b709862d5736629dd14a90fd798be4df5b67 (patch) | |
tree | dc0e7fd0df581046c1f806bb66384a162b8320d3 /devel/gps | |
parent | 7c26fb3c1e36286ddfbf9c64218682256a17b424 (diff) | |
download | freebsd-ports-gnome-6b67b709862d5736629dd14a90fd798be4df5b67.tar.gz freebsd-ports-gnome-6b67b709862d5736629dd14a90fd798be4df5b67.tar.zst freebsd-ports-gnome-6b67b709862d5736629dd14a90fd798be4df5b67.zip |
devel/gps: Add multijob support
This is a big port that takes a lot of time to build, so enabling multijob
support is a big win. As with other Ada programs, the "-j" configuration
argument cannot be passed to the Makefile. The multijob support is enabled
through the PROCESSORS environment variable. These requirement necessitate
a custom do-build target.
Some minor portlint cleanup is done as well.
Approved by: bapt (mentor)
Diffstat (limited to 'devel/gps')
-rw-r--r-- | devel/gps/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/devel/gps/Makefile b/devel/gps/Makefile index de94d6b89aa3..8d1cd4c99953 100644 --- a/devel/gps/Makefile +++ b/devel/gps/Makefile @@ -29,7 +29,8 @@ WRKSRC= ${WRKDIR}/gps-release-ide-${PORTVERSION}-src CONFIGURE_ENV+= AWK=/usr/bin/awk DESTINY= ${WRKDIR}/destino -MAKE_ENV+= DESTDIR=${DESTINY} +MAKE_ENV+= DESTDIR=${DESTINY} \ + PROCESSORS=${MAKE_JOBS_NUMBER} OPTIONS_DEFINE= SYSLOG SQLITE PGSQL PYTHON READLINE OPTIONS_DEFAULT= SYSLOG SQLITE PYTHON READLINE @@ -101,6 +102,9 @@ post-patch: @${REINPLACE_CMD} -e "s|@PREFIX@|${PREFIX}|g" \ ${WRKSRC}/gnatlib/src/gnatcoll_readline.gpr.in +do-build: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} default + pre-install: .if ${PORT_OPTIONS:MPYTHON} ${PYTHON_CMD} ${PYCOMPILE} ${WRKSRC}/share/plug-ins @@ -110,7 +114,7 @@ pre-install: post-install: ${RM} -rf ${DESTINY}${PREFIX}/share/doc/gps/html/users_guide/_sources ${RM} -rf ${DESTINY}${PREFIX}/share/doc/gps/html/tutorial/_sources - cd ${DESTINY}${PREFIX}; ${FIND} * -type d -empty -print | xargs rmdir + cd ${DESTINY}${PREFIX}; ${FIND} * -type d -empty -print | ${XARGS} ${RMDIR} ${CP} -pR ${DESTINY}${PREFIX}/ ${PREFIX}/ @cd ${DESTINY}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \ ${SORT} > ${WRKDIR}/PLIST.all |