aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gps
diff options
context:
space:
mode:
Diffstat (limited to 'devel/gps')
-rw-r--r--devel/gps/Makefile32
1 files changed, 14 insertions, 18 deletions
diff --git a/devel/gps/Makefile b/devel/gps/Makefile
index 56d168ece015..01e6e8bc5525 100644
--- a/devel/gps/Makefile
+++ b/devel/gps/Makefile
@@ -22,20 +22,18 @@ GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_PERL5= build
ALL_TARGET= default
+NO_MTREE= yes
USES= ada gmake perl5 pkgconfig
WRKSRC= ${WRKDIR}/gps-release-ide-${PORTVERSION}-src
CONFIGURE_ENV+= AWK=/usr/bin/awk
-DESTINY= ${WRKDIR}/destino
-MAKE_ENV+= DESTDIR=${DESTINY} \
- PROCESSORS=${MAKE_JOBS_NUMBER}
+MAKE_ENV+= PROCESSORS=${MAKE_JOBS_NUMBER}
OPTIONS_DEFINE= SYSLOG SQLITE PGSQL PYTHON READLINE
OPTIONS_DEFAULT= SYSLOG SQLITE PYTHON READLINE
PYTHON_DESC= Enable Python console
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD
@@ -102,7 +100,7 @@ post-patch:
${WRKSRC}/gnatlib/src/gnatcoll_readline.gpr.in
do-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} default
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} default
pre-install:
.if ${PORT_OPTIONS:MPYTHON}
@@ -111,20 +109,18 @@ pre-install:
.endif
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}
- ${CP} -pR ${DESTINY}${PREFIX}/ ${PREFIX}/
- @cd ${DESTINY}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
- ${SORT} > ${WRKDIR}/PLIST.all
- @cd ${DESTINY}${PREFIX}; ${FIND} * -type d | ${AWK} '/\//' | ${SORT} -r | \
+ ${RM} -rf ${STAGEDIR}${PREFIX}/share/doc/gps/html/users_guide/_sources
+ ${RM} -rf ${STAGEDIR}${PREFIX}/share/doc/gps/html/tutorial/_sources
+ @cd ${STAGEDIR}${PREFIX}; ${FIND} * -type d -empty -print | ${XARGS} ${RMDIR}
+ @cd ${STAGEDIR}${PREFIX}; ${FIND} * \( -type f -or -type l \) | \
+ ${SORT} > ${TMPPLIST}
+ @cd ${STAGEDIR}${PREFIX}; ${FIND} * -type d | ${AWK} '/\//' | ${SORT} -r | \
${SED} -e '/share\/doc$$/d' -e '/share\/gps$$/d' \
-e '/share\/gps\/plug-ins$$/d' -e '/share\/examples$$/d' \
- -e 's/^/@dirrm /g' >> ${WRKDIR}/PLIST.all
- @echo "@unexec rmdir %D/share/gps/plug-ins 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
- @echo "@unexec rmdir %D/share/gps 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
- @echo "@unexec rmdir %D/share/examples 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
- @echo "@unexec rmdir %D/share/doc 2>/dev/null || true" >> ${WRKDIR}/PLIST.all
- @${CAT} ${WRKDIR}/PLIST.all >> ${TMPPLIST}
+ -e 's/^/@dirrm /g' >> ${TMPPLIST}
+ @echo "@unexec rmdir %D/share/gps/plug-ins 2>/dev/null || true" >> ${TMPPLIST}
+ @echo "@unexec rmdir %D/share/gps 2>/dev/null || true" >> ${TMPPLIST}
+ @echo "@unexec rmdir %D/share/examples 2>/dev/null || true" >> ${TMPPLIST}
+ @echo "@unexec rmdir %D/share/doc 2>/dev/null || true" >> ${TMPPLIST}
.include <bsd.port.mk>