diff options
author | antoine <antoine@FreeBSD.org> | 2014-01-28 08:16:57 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2014-01-28 08:16:57 +0800 |
commit | e57a9ef33e2a88cd1854b4ff9d710daf1ce8a6c1 (patch) | |
tree | abfd68b8753cc6bcc11cad568d57d71208cdb0a1 /lang | |
parent | 2fccfa036a74a77e0a84b9a95a8306f1181f4d25 (diff) | |
download | freebsd-ports-gnome-e57a9ef33e2a88cd1854b4ff9d710daf1ce8a6c1.tar.gz freebsd-ports-gnome-e57a9ef33e2a88cd1854b4ff9d710daf1ce8a6c1.tar.zst freebsd-ports-gnome-e57a9ef33e2a88cd1854b4ff9d710daf1ce8a6c1.zip |
Stage support
Diffstat (limited to 'lang')
-rw-r--r-- | lang/fpc-base/Makefile | 12 | ||||
-rw-r--r-- | lang/fpc-docs/Makefile | 9 | ||||
-rw-r--r-- | lang/fpc-lua/Makefile | 5 | ||||
-rw-r--r-- | lang/fpc-rexx/Makefile | 5 | ||||
-rw-r--r-- | lang/fpc-tcl/Makefile | 5 | ||||
-rw-r--r-- | lang/fpc-units/Makefile | 6 | ||||
-rw-r--r-- | lang/fpc-utils/Makefile | 4 | ||||
-rw-r--r-- | lang/fpc/Makefile | 2 | ||||
-rw-r--r-- | lang/fpc/Makefile.units | 344 |
9 files changed, 31 insertions, 361 deletions
diff --git a/lang/fpc-base/Makefile b/lang/fpc-base/Makefile index 725dfbb07d83..4048664a8bde 100644 --- a/lang/fpc-base/Makefile +++ b/lang/fpc-base/Makefile @@ -13,14 +13,12 @@ MAINTAINER= acm@FreeBSD.org COMMENT= Meta package to install all of the Free Pascal base WANT_FPC_BASE= yes - -.if !defined(NOPORTDOCS) -RUN_DEPENDS+= ${LOCALBASE}/share/doc/fpdocs-${PORTVERSION}/user.pdf:${PORTSDIR}/lang/fpc-docs -.endif - NO_BUILD= yes +NO_INSTALL= yes +NO_MTREE= yes + +OPTIONS_DEFINE= DOCS -do-install: # empty +DOCS_RUN_DEPENDS= ${LOCALBASE}/share/doc/fpdocs-${PORTVERSION}/user.pdf:${PORTSDIR}/lang/fpc-docs -NO_STAGE= yes .include <bsd.port.mk> diff --git a/lang/fpc-docs/Makefile b/lang/fpc-docs/Makefile index 0c992d0b1f88..de5aca330824 100644 --- a/lang/fpc-docs/Makefile +++ b/lang/fpc-docs/Makefile @@ -24,13 +24,8 @@ DOCSDIR= ${PREFIX}/share/doc/fpdocs-${PORTVERSION} PORTDOCS= chart.pdf fcl.pdf fpdoc.pdf prog.pdf ref.pdf rtl.pdf user.pdf SUB_FILES= pkg-message -NO_STAGE= yes do-install: - @${MKDIR} ${DOCSDIR} - @cd ${WRKDIR}/doc && \ - ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \; - -post-install: - @${CAT} ${PKGMESSAGE} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKDIR}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/lang/fpc-lua/Makefile b/lang/fpc-lua/Makefile index 88f3b0a9a434..776b2bbb49bc 100644 --- a/lang/fpc-lua/Makefile +++ b/lang/fpc-lua/Makefile @@ -12,11 +12,12 @@ USE_FPC= yes MASTERDIR= ${.CURDIR}/../../lang/fpc WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} -EXTRACTUNITDIR+= ${WRKUNITDIR} +EXTRACTUNITDIR= ${WRKUNITDIR} OPTIONS_DEFINE= LUA LUA_DESC= Install lua library OPTIONS_DEFAULT= LUA -NO_STAGE= yes +LUA_LIB_DEPENDS= liblua-5.1.so:${PORTSDIR}/lang/lua + .include "${MASTERDIR}/Makefile" diff --git a/lang/fpc-rexx/Makefile b/lang/fpc-rexx/Makefile index 4187e3a9463b..66e8782e64f4 100644 --- a/lang/fpc-rexx/Makefile +++ b/lang/fpc-rexx/Makefile @@ -12,11 +12,12 @@ USE_FPC= yes MASTERDIR= ${.CURDIR}/../../lang/fpc WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} -EXTRACTUNITDIR+= ${WRKUNITDIR} +EXTRACTUNITDIR= ${WRKUNITDIR} OPTIONS_DEFINE= REXX_REGINA REXX_REGINA_DESC= Install rexx-regina library OPTIONS_DEFAULT= REXX_REGINA -NO_STAGE= yes +REXX_REGINA_RUN_DEPENDS= rexx:${PORTSDIR}/lang/rexx-regina + .include "${MASTERDIR}/Makefile" diff --git a/lang/fpc-tcl/Makefile b/lang/fpc-tcl/Makefile index 97d1e7174b26..5f8782a7ba21 100644 --- a/lang/fpc-tcl/Makefile +++ b/lang/fpc-tcl/Makefile @@ -12,11 +12,12 @@ USE_FPC= fcl-base MASTERDIR= ${.CURDIR}/../../lang/fpc WRKUNITDIR= ${FPCSRCDIR}/packages/${PKGNAMESUFFIX:S/-//} -EXTRACTUNITDIR+= ${WRKUNITDIR} +EXTRACTUNITDIR= ${WRKUNITDIR} OPTIONS_DEFINE= TCL TCL_DESC= Install tool commnad language OPTIONS_DEFAULT= TCL -NO_STAGE= yes +TCL_USES= tk:84,run + .include "${MASTERDIR}/Makefile" diff --git a/lang/fpc-units/Makefile b/lang/fpc-units/Makefile index 95f648e37e33..c06b7be1d033 100644 --- a/lang/fpc-units/Makefile +++ b/lang/fpc-units/Makefile @@ -15,6 +15,8 @@ COMMENT= A meta port to install Free Pascal units ONLY_FOR_ARCHS= i386 amd64 NO_BUILD= yes +NO_INSTALL= yes +NO_MTREE= yes BUILDNAME= ${ARCH}-freebsd @@ -105,7 +107,6 @@ ZLIB_DESC= Interface to the zlib compression library LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME} -NO_STAGE= yes .include <bsd.port.options.mk> OPTIONS_DEFAULT=A52 ASPELL BFD BZIP2 CAIRO CHM DBUS DBLIB DTS FASTCGI FCL-ASYNC FCL-BASE \ @@ -125,7 +126,4 @@ UNITS_SELECTED+= ${OPT:L} .endfor USE_FPC= ${UNITS_SELECTED} -do-install: build - @${DO_NADA} - .include <bsd.port.mk> diff --git a/lang/fpc-utils/Makefile b/lang/fpc-utils/Makefile index cace52f05be0..8cf251ab6650 100644 --- a/lang/fpc-utils/Makefile +++ b/lang/fpc-utils/Makefile @@ -12,7 +12,7 @@ USE_FPC= chm fcl-base fcl-net fcl-process fcl-res fppkg libcurl MASTERDIR= ${.CURDIR}/../../lang/fpc WRKUNITDIR= ${FPCSRCDIR}/${PKGNAMESUFFIX:S/-//} -EXTRACTUNITDIR+= ${WRKUNITDIR} +EXTRACTUNITDIR= ${WRKUNITDIR} +OPT= -Fu../fcl/* -NO_STAGE= yes .include "${MASTERDIR}/Makefile" diff --git a/lang/fpc/Makefile b/lang/fpc/Makefile index 22dcd3f62a43..fe4479c6bccf 100644 --- a/lang/fpc/Makefile +++ b/lang/fpc/Makefile @@ -32,7 +32,6 @@ OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options OPT?=-CX FPCSRCDIR= ${PORTNAME}-${PORTVERSION} -NO_STAGE= yes .include <bsd.port.pre.mk> .if ${ARCH} == "i386" @@ -48,6 +47,7 @@ PLIST_SUB= FPC_I386="@comment " \ .endif .if !defined(PKGNAMESUFFIX) +NO_STAGE= yes SUB_FILES= pkg-message BUILDNAME= ${FPC_ARCH}-freebsd diff --git a/lang/fpc/Makefile.units b/lang/fpc/Makefile.units index d4451d81df00..17a0e742f926 100644 --- a/lang/fpc/Makefile.units +++ b/lang/fpc/Makefile.units @@ -7,341 +7,30 @@ PLIST= ${.CURDIR}/pkg-plist PATCHDIR= ${.CURDIR}/files FILESDIR= ${.CURDIR}/files WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +BUILD_WRKSRC= ${WRKDIR}/${WRKUNITDIR} +INSTALL_WRKSRC= ${WRKDIR}/${WRKUNITDIR} -FPCDIR= ${LOCALBASE}/lib/${PORTNAME}/${PORTVERSION} +FPCDIR?= ${LOCALBASE}/lib/${PORTNAME}/${PORTVERSION} UNITPREFIX= unit- UNITEXTRACT_SUFX= .tar.gz UNITNAME= ${UNITPREFIX}${PKGNAMESUFFIX:S/-//}${BUILDNAME:S/^/./}${UNITEXTRACT_SUFX} UNITDIR= lib/fpc/${PORTVERSION}/units/${BUILDNAME} EXTRACT_AFTER_ARGS= ${EXTRACTUNITDIR} -OPT=-Ur -CX +OPT+= -Ur -CX -MAKE_ENV+= PP=${LOCALBASE}/bin/${PPNAME} \ +MAKE_ARGS= PP=${LOCALBASE}/bin/${PPNAME} \ FPCDIR=${FPCDIR} \ FPCMAKE=${LOCALBASE}/bin/fpcmake \ FPCTARGET=${BUILDNAME} \ ARCH=${FPC_ARCH} \ OPT="${OPT}" \ - BSDHIER=1 + BSDHIER=1 \ + INSTALL_PREFIX=${STAGEDIR}${PREFIX} +MAKE_ENV+= FPCDIR=${UNITDIR} -.if ${PKGNAMESUFFIX} == "-a52" -. if defined(WITH_LIBA52) -LIB_DEPENDS= a52:${PORTSDIR}/audio/liba52 -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-bfd" -. if defined(WITH_LIBBFD) -RUN_DEPENDS= ${LOCALBASE}/lib/libbfd.a:${PORTSDIR}/devel/libbfd -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-cairo" -. if defined(WITH_LIBCAIRO) -LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-dbus" -. if defined(WITH_DBUS) -LIB_DEPENDS= dbus-1:${PORTSDIR}/devel/dbus -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-dts" -. if defined(WITH_LIBDCA) -LIB_DEPENDS= dca:${PORTSDIR}/multimedia/libdca -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-fcl-db" -OPT+= -Fuunits/${BUILDNAME} -Fu../units/${BUILDNAME} -Fu../* \ - -Fu../../units/${BUILDNAME} -Fu../../../units/${BUILDNAME} \ - -Fu../sqldb/* -.endif - -.if ${PKGNAMESUFFIX} == "-fcl-net" -OPT+= -Fu${WRKDIR}/${WRKUNITDIR}/* -.endif - -.if ${PKGNAMESUFFIX} == "-fcl-web" -OPT+= -Fuunits/${BUILDNAME} -Fu../units/${BUILDNAME} -Fu../* \ - -Fu../../units/${BUILDNAME} -Fu../../../units/${BUILDNAME} -.endif - -.if ${PKGNAMESUFFIX} == "-fftw" -. if defined(WITH_FFTW) -LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3 -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-fpgtk" -. if defined(WITH_GTK1) -.include <${PORTSDIR}/Mk/bsd.gnome.mk> -USE_GNOME= gtk12 -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-fv" -HAVE_EXAMPLES= true -.endif - -.if ${PKGNAMESUFFIX} == "-gdbm" -. if defined(WITH_GDBM) -LIB_DEPENDS= gdbm.4:${PORTSDIR}/databases/gdbm -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-ggi" -. if defined(WITH_LIBGGI) -LIB_DEPENDS= ggi:${PORTSDIR}/graphics/libggi -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-gmp" -. if defined(WITH_GMP) -LIB_DEPENDS= gmp:${PORTSDIR}/math/gmp -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-gtk1" -. if defined(WITH_GTK1) -.include <${PORTSDIR}/Mk/bsd.gnome.mk> -USE_GNOME= gtk12 -. endif -OPT+=-Fu${WRKDIR}/${WRKUNITDIR}/* -.endif - -.if ${PKGNAMESUFFIX} == "-gtk2" -. if defined(WITH_GTK2) -.include <${PORTSDIR}/Mk/bsd.gnome.mk> -USE_GNOME= gtk20 -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-hermes" -. if defined(WITH_HERMES) -LIB_DEPENDS= Hermes:${PORTSDIR}/graphics/Hermes -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-httpd22" -. if defined(WITH_APACHE22) -USE_APACHE= 22 -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-ibase" -. if defined(WITH_IBASE) -USE_FIREBIRD= yes -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-iconvenc" -# added to main port to make it compile on 10 with iconv in libc -# USES+=iconv -.endif - -.if ${PKGNAMESUFFIX} == "-ide" -FPCDIR= # -.endif - -.if ${PKGNAMESUFFIX} == "-imagemagick" -. if defined(WITH_IMAGEMAGICK) -LIB_DEPENDS= Magick:${PORTSDIR}/graphics/ImageMagick -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-imlib" -. if defined(WITH_IMLIB) -.include <${PORTSDIR}/Mk/bsd.efl.mk> -USE_EFL= imlib2 -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-ldap" -. if defined(WITH_OPENLDAP) -USE_OPENLDAP= yes -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-libcurl" -. if defined(WITH_LIBCURL) -LIB_DEPENDS= curl:${PORTSDIR}/ftp/curl -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-libgd" -. if defined(WITH_LIBGD) -LIB_DEPENDS= gd:${PORTSDIR}/graphics/gd -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-libpng" -. if defined(WITH_LIBPNG) -LIB_DEPENDS= png15:${PORTSDIR}/graphics/png -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-libxml2" -. if defined(WITH_LIBXML2) -LIB_DEPENDS= xml2:${PORTSDIR}/textproc/libxml2 -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-lua" -. if defined(WITH_LUA) -LIB_DEPENDS= lua-5.1:${PORTSDIR}/lang/lua -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-mad" -.if defined(WITH_LIBMAD) -LIB_DEPENDS= mad:${PORTSDIR}/audio/libmad -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-matroska" -. if defined(WITH_LIBMATROSKA) -LIB_DEPENDS= matroska:${PORTSDIR}/multimedia/libmatroska -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-modplug" -. if defined(WITH_LIBMODPLUG) -LIB_DEPENDS= modplug:${PORTSDIR}/audio/libmodplug -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-mysql" -.if defined(WITH_MYSQL) -USE_MYSQL= yes -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-newt" -. if defined(WITH_NEWT) -LIB_DEPENDS= newt:${PORTSDIR}/devel/newt -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-odbc" -. if defined(WITH_ODBC) -LIB_DEPENDS= odbc.2:${PORTSDIR}/databases/unixODBC -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-oggvorbis" -. if defined(WITH_LIBOGG) -LIB_DEPENDS+= ogg:${PORTSDIR}/audio/libogg -. endif -. if defined(WITH_LIBVORBIS) -LIB_DEPENDS+= vorbis:${PORTSDIR}/audio/libvorbis -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-opengl" -. if defined(WITH_OPENGL) -USE_GL= glut -. endif -HAVE_EXAMPLES= true -.endif - -.if ${PKGNAMESUFFIX} == "-openssl" -. if defined(WITH_OPENSSL) -USE_OPENSSL= yes -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-oracle" -. if defined(WITH_ORACLE) -ORACLE8_LIB= ${LOCALBASE}/oracle8-client/rdbms/lib -RUN_DEPENDS= ${ORACLE8_LIB}/env_rdbms.mk:${PORTSDIR}/databases/oracle8-client -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-pcap" -. if defined(WITH_LIBPCAP) -LIB_DEPENDS= pcap:${PORTSDIR}/net/libpcap -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-postgres" -. if defined(WITH_PGSQL) -USE_PGSQL= yes -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-proj4" -. if defined(WITH_PROJ) -LIB_DEPENDS= proj:${PORTSDIR}/graphics/proj -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-rexx" -. if defined(WITH_REXX_REGINA) -RUN_DEPENDS= rexx:${PORTSDIR}/lang/rexx-regina -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-rsvg" -. if defined(WITH_LIBRSVG2) -LIB_DEPENDS= rsvg-2:${PORTSDIR}/graphics/librsvg2 -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-sdl" -. if defined(WITH_SDL) -USE_SDL= sdl image mixer ttf gfx -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-sndfile" -. if defined(WITH_LIBSNDFILE) -LIB_DEPENDS= sndfile:${PORTSDIR}/audio/libsndfile -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-sqlite" -. if defined(WITH_SQLITE) -USE_SQLITE= yes -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-svgalib" -. if defined(WITH_SVGA) -LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-tcl" -. if defined(WITH_TCL) -RUN_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-unzip" -. if defined(WITH_UNZIP) -RUN_DEPENDS= unzip:${PORTSDIR}/archivers/unzip -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-utils" -OPT+=-Fu../fcl/* -.endif - -.if ${PKGNAMESUFFIX} == "-x11" -. if defined(WITH_X11) -USE_XORG= xcursor xfont xxf86dga xxf86vm xi xinerama xkbfile xrandr xrender xres xv -. endif -.endif - -.if ${PKGNAMESUFFIX} == "-xforms" -. if defined(WITH_XFORMS) -LIB_DEPENDS= forms.2:${PORTSDIR}/x11-toolkits/xforms -. endif -HAVE_EXAMPLES= true +.if ${PORT_OPTIONS:MEXAMPLES} && defined(HAVE_EXAMPLES) +LATE_INSTALL_ARGS= fpc_exampleinstall .endif post-extract: @@ -363,16 +52,3 @@ post-patch: @${REINPLACE_CMD} -e 's|$$(INSTALL) Package.fpc $$(INSTALL_UNITDIR)||g' \ ${WRKDIR}/${WRKUNITDIR}/fppkg/Makefile .endif - -do-build: - @${ECHO_CMD} ${MAKE_ENV} - @${ECHO_CMD} "" - @cd ${WRKDIR}/${WRKUNITDIR} && ${GMAKE} all ${MAKE_ENV} - -do-install: - @cd ${WRKDIR}/${WRKUNITDIR} && FPCDIR=${UNITDIR} ${GMAKE} install ${MAKE_ENV} -. if !defined(NOPORTDOCS) -. if defined(HAVE_EXAMPLES) - @cd ${WRKDIR}/${WRKUNITDIR} && ${GMAKE} fpc_exampleinstall -. endif -. endif |