diff options
author | William Grzybowski <wg@FreeBSD.org> | 2013-07-02 14:06:12 +0000 |
---|---|---|
committer | William Grzybowski <wg@FreeBSD.org> | 2013-07-02 14:06:12 +0000 |
commit | ec8f26835a262369e3cab2e53faefbea419fe323 (patch) | |
tree | a364e2eddd57326de13df039a1ec0c0372d2e614 /x11-toolkits/gtkada/Makefile | |
parent | 1747733f20fbd6ba9813e7dc4ac51fbcfc0cc026 (diff) |
x11-toolkits/gtkada: update to 2.24.4.0
- Update to 2.24.4.0
- Auto generate pkg-plist
PR: ports/180172
Submitted by: John Marino <draco@marino.st> (maintainer)
Notes
Notes:
svn path=/head/; revision=322170
Diffstat (limited to 'x11-toolkits/gtkada/Makefile')
-rw-r--r-- | x11-toolkits/gtkada/Makefile | 72 |
1 files changed, 61 insertions, 11 deletions
diff --git a/x11-toolkits/gtkada/Makefile b/x11-toolkits/gtkada/Makefile index 2b7418e01844..02ef05f92708 100644 --- a/x11-toolkits/gtkada/Makefile +++ b/x11-toolkits/gtkada/Makefile @@ -2,34 +2,84 @@ # $FreeBSD$ PORTNAME= gtkada -PORTVERSION= ${GTKADA_VERSION} -PORTREVISION= 2 +PORTVERSION= 2.24.4.0 CATEGORIES= x11-toolkits MASTER_SITES= http://downloads.dragonlace.net/src/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ - gtkada-rm-${GTKADA_VERSION}${EXTRACT_SUFX} + gtkada-rm-${PORTVERSION}${EXTRACT_SUFX} MAINTAINER= draco@marino.st COMMENT= Ada graphical toolkit based on Gtk2+ LICENSE= GPLv2 -BUILD_DEPENDS+= makeinfo:${PORTSDIR}/print/texinfo -BUILD_DEPENDS+= gtk>=${GTKADA_VERSION}:${PORTSDIR}/x11-toolkits/gtk20 -RUN_DEPENDS+= gtk>=${GTKADA_VERSION}:${PORTSDIR}/x11-toolkits/gtk20 - GNU_CONFIGURE= yes USE_GMAKE= yes USE_BZIP2= yes USE_PERL5_BUILD=yes -USES+= ada +USE_GNOME= gtk20 +USES= ada + +DESTINY= ${WRKDIR}/destino +MAKE_ENV+= DESTDIR=${DESTINY} + +OPTIONS_DEFINE= DOCS -GTKADA_VERSION= 2.22 -PLIST_SUB+= PKGNAME="${PORTNAME}-${GTKADA_VERSION}" +.include <bsd.port.options.mk> +# Setting MAKE_JOBS_SAFE=yes will break the build because -j is passed +# to gmake. So we need to roll our own parallel-job support here. +# We can check MAKE_JOBS_NUMBER because /etc/make.conf is loaded +# before this makefile and bsd.port.mk isn't. +.if !defined(DISABLE_MAKE_JOBS) +. if defined(MAKE_JOBS_NUMBER) +MAKE_ENV+= PROCESSORS=${MAKE_JOBS_NUMBER} +. else +. if ${OPSYS} == FreeBSD +NCPU!= ${SYSCTL} -n kern.smp.cpus +. elif ${OPSYS} == DragonFly +NCPU!= ${SYSCTL} -n hw.ncpu +. else +NCPU= 1 +. endif +MAKE_ENV+= PROCESSORS=${NCPU} +. endif +.endif + +.if ${PORT_OPTIONS:MDOCS} +BUILD_DEPENDS+= sphinx-build:${PORTSDIR}/textproc/py-sphinx +.endif + +.if ${PORT_OPTIONS:MNLS} +CONFIGURE_ARGS+= --enable-nls +USES+= gettext +.else CONFIGURE_ARGS+= --disable-nls +.endif post-patch: - @${REINPLACE_CMD} -e 's|glib/.*\.h>|glib.h>|g' ${WRKSRC}/src/misc.c + @${REINPLACE_CMD} -e '/DESTDIR =/d' ${WRKSRC}/src/Makefile.common.in +.if ${PORT_OPTIONS:MDOCS} + @${REINPLACE_CMD} -e 's/^all: \(.*\)/all: \1 docs/g' ${WRKSRC}/Makefile.in +.endif + +post-install: + @${MKDIR} ${DESTINY}${PREFIX}/libdata + @${MV} ${DESTINY}${PREFIX}/lib/pkgconfig ${DESTINY}${PREFIX}/libdata/ + ${RM} -rf ${DESTINY}${PREFIX}/share/doc/gtkada/gtkada_ug/_sources + ${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 | \ + ${SED} -e '/lib\/gnat$$/d' -e '/share\/doc$$/d' -e '/share\/gps/d' \ + -e '/share\/examples$$/d' -e '/libdata\/pkgconfig/d' \ + -e 's/^/@dirrm /g' >> ${WRKDIR}/PLIST.all + @echo "@unexec rmdir %D/lib/gnat 2>/dev/null || true" >> ${WRKDIR}/PLIST.all + @echo "@unexec rmdir %D/libdata/pkgconfig 2>/dev/null || true" >> ${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} .include <bsd.port.mk> |