summaryrefslogtreecommitdiff
path: root/lang/gpc/Makefile
diff options
context:
space:
mode:
authorAlejandro Pulver <alepulver@FreeBSD.org>2006-07-28 20:37:09 +0000
committerAlejandro Pulver <alepulver@FreeBSD.org>2006-07-28 20:37:09 +0000
commitfa17190ae5d3c3e4e59d3e0b522976b148df4414 (patch)
tree6fd064adc9b2c07fbc9a7b258816e95a15e91b8f /lang/gpc/Makefile
parent- Update to 0.5 (diff)
- Fix building on FreeBSD 7.x [1].
- Install GCC utilities needed by GPC (doesn't work if base system GCC isn't the same as the one used to build GPC) [2]. - Don' change the default GCC installation directory hierarchy, but avoid possible conflicts with other GCC compilers by prepending a "gpc" directory after ${PREFIX}. Reported by: linimon [1], "L. S. Colby" <ls.colby@gwirynybyd.com> [2]
Diffstat (limited to 'lang/gpc/Makefile')
-rw-r--r--lang/gpc/Makefile36
1 files changed, 19 insertions, 17 deletions
diff --git a/lang/gpc/Makefile b/lang/gpc/Makefile
index de1e81ce0d1c..a191d01e2db2 100644
--- a/lang/gpc/Makefile
+++ b/lang/gpc/Makefile
@@ -9,9 +9,10 @@ PORTNAME= gpc
PORTVERSION= 20050331
CATEGORIES= lang
MASTER_SITES= http://www.gnu-pascal.de/alpha/:gpc \
- ${MASTER_SITE_GCC:S|$|releases/gcc-${GCC_VERSION}/|}
+ ${MASTER_SITE_GCC}
+MASTER_SITE_SUBDIR= releases/gcc-${GCC_VER}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:gpc \
- gcc-core-${GCC_VERSION}${EXTRACT_SUFX}
+ gcc-core-${GCC_VER}${EXTRACT_SUFX}
MAINTAINER= alepulver@FreeBSD.org
COMMENT= GNU Pascal compiler
@@ -22,18 +23,25 @@ BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
USE_BISON= yes
USE_BZIP2= yes
USE_GMAKE= yes
-#USE_PERL5_BUILD=yes
GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--disable-nls --enable-languages=pascal
-WRKSRC= ${WRKDIR}/gcc-${GCC_VERSION}
+CONFIGURE_ARGS+=--disable-nls \
+ --enable-languages=pascal \
+ --with-system-zlib \
+ --with-libiconv-prefix=${LOCALBASE} \
+ --libdir=${PREFIX}/lib/${PORTNAME} \
+ --libexecdir=${PREFIX}/libexec/${PORTNAME}
+
+WRKSRC= ${WRKDIR}/gcc-${GCC_VER}
INSTALL_WRKSRC= ${WRKSRC}/gcc
-INSTALL_TARGET= pascal.install
+INSTALL_TARGET= pascal.install-with-gcc
MAN1= binobj.1 gpc.1 gpc-run.1 gpidump.1
INFO= gpc gpcs gpcs-de gpcs-es gpcs-hr
-# This port can be compiled with the GCC versions 2.8.1-2.95 and 3.2-3.4.3.
-GCC_VERSION?= 3.4.3
+PLIST_SUB= GCC_VER="${GCC_VER}" GNU_HOST="${CONFIGURE_TARGET}"
+
+# This port can be compiled with GCC versions 2.8.1 to 2.95 and 3.2 to 3.4.3.
+GCC_VER?= 3.4.3
.include <bsd.port.pre.mk>
@@ -45,25 +53,19 @@ post-extract:
@${MV} ${WRKDIR}/p ${WRKSRC}/gcc
post-patch:
- @${REINPLACE_CMD} -Ee \
- 's|^(lib(exec)?subdir =).*|\1 $$\(lib\2dir\)/gpc|; \
- s|(\$$\(lib(exec)?dir\))/gcc|\1/gpc|; \
- s|(-DDEFAULT_TARGET_(VERSION\|MACHINE)=\\").*(\\")|\1\3|' \
- ${WRKSRC}/Makefile.in ${WRKSRC}/gcc/Makefile.in
- @${REINPLACE_CMD} -e 's|read junk||' \
- ${WRKSRC}/gcc/p/config-lang.in
+ @${REINPLACE_CMD} -e 's|read junk||' ${WRKSRC}/gcc/p/config-lang.in
@${REINPLACE_CMD} -Ee 's|^(sed=)"`.*`"|\1sed|' \
${WRKSRC}/gcc/p/script/extract-doc-demos
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -Ee 's|^(PASCAL_INSTALL_DOC=).*|\1|' \
${WRKSRC}/gcc/p/Make-lang.in
.else
- @${REINPLACE_CMD} -Ee 's|^(P_DOC_DIR=).*|\1${DOCSDIR:S/${PREFIX}\///}|' \
+ @${REINPLACE_CMD} -Ee \
+ 's|^(P_DOC_DIR=).*|\1${DOCSDIR:S/${PREFIX}\///}|' \
${WRKSRC}/gcc/p/Make-lang.in
.endif
post-install:
- ${INSTALL_DATA} ${WRKSRC}/gcc/libgcc_eh.a ${PREFIX}/lib/gpc
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
.include <bsd.port.post.mk>