summaryrefslogtreecommitdiff
path: root/lang/parrot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/parrot/Makefile')
-rw-r--r--lang/parrot/Makefile33
1 files changed, 16 insertions, 17 deletions
diff --git a/lang/parrot/Makefile b/lang/parrot/Makefile
index 27194a9b25b..951d35c0e61 100644
--- a/lang/parrot/Makefile
+++ b/lang/parrot/Makefile
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile,v 1.12 2006/09/30 13:43:52 obache Exp $
+# $NetBSD: Makefile,v 1.13 2007/04/20 14:01:00 obache Exp $
#
-DISTNAME= parrot-0.4.1
-PKGREVISION= 1
+DISTNAME= parrot-0.4.11
CATEGORIES= lang
-MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../by-authors/id/L/LT/LTOETSCH/}
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../by-authors/id/M/MD/MDIEP/}
MAINTAINER= debolaz@gmail.com
HOMEPAGE= http://www.parrotcode.org/
@@ -15,10 +14,14 @@ USE_TOOLS+= perl
PTHREAD_OPTS+= require
BUILD_TARGET= world
TEST_TARGET= test
+INSTALL_TARGET= reallyinstall
+HAS_CONFIGURE= yes
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.prefs.mk"
+CONFIG_SHELL= perl
+CONFIGURE_SCRIPT= Configure.pl
CONFIGURE_ARGS+= --prefix=${PREFIX:Q} \
--icu-config=${PREFIX}/bin/icu-config
@@ -30,19 +33,15 @@ CONFIGURE_ARGS+= --jitcapable \
--execcapable
.endif
-do-configure:
- cd ${WRKSRC} && ${PERL5} Configure.pl ${CONFIGURE_ARGS}
-
-post-configure:
- ${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.orig
- ${SED} -e 's|-pthread||g' \
- -e 's|-lpthread||g' \
- -e 's|-lc_r||g' \
- -e '/^CFLAGS /s|$$|${PTHREAD_CFLAGS}|' \
- -e '/^LINKFLAGS /s|$$|${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}|' \
- -e '/^LDFLAGS /s|$$|${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}|' \
- < ${WRKSRC}/Makefile.orig \
- > ${WRKSRC}/Makefile
+SUBST_CLASSES+= pthread
+SUBST_STAGE.pthread= post-configure
+SUBST_FILES.pthread= Makefile
+SUBST_SED.pthread= -e 's|-pthread||g'
+SUBST_SED.pthread+= -e 's|-lpthread||g'
+SUBST_SED.pthread+= -e 's|-lc_r||g'
+SUBST_SED.pthread+= -e '/^CFLAGS /s|$$|${PTHREAD_CFLAGS:Q}|'
+SUBST_SED.pthread+= -e '/^LINKFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|'
+SUBST_SED.pthread+= -e '/^LDFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|'
post-install:
if [ -e ${PREFIX}/lib/libparrot.so.0.4.1 ]; then \