Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --- pkgsrc/lang/parrot/Makefile 2009/08/12 02:31:18 1.19 +++ pkgsrc/lang/parrot/Makefile 2010/02/02 09:01:09 1.27 @@ -1,10 +1,9 @@ -# $NetBSD: Makefile,v 1.19 2009/08/12 02:31:18 obache Exp $ +# $NetBSD: Makefile,v 1.27 2010/02/02 09:01:09 he Exp $ # -VERSION= 1.4.0 +VERSION= 2.0.0 RTYPE= stable DISTNAME= parrot-${VERSION} -PKGREVISION= 1 CATEGORIES= lang MASTER_SITES= ftp://ftp.parrot.org/pub/parrot/releases/${RTYPE}/${VERSION}/ @@ -39,13 +38,33 @@ SUBST_SED.pthread+= -e '/^CFLAGS /s|$$|$ SUBST_SED.pthread+= -e '/^LINKFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|' SUBST_SED.pthread+= -e '/^LDFLAGS /s|$$|${PTHREAD_LDFLAGS:Q} ${PTHREAD_LIBS:Q}|' +PLIST_SUBST+= VERSION=${VERSION:Q} +PLIST_SRC+= ${PLIST_SRC_DFLT} +# Default this to ELF shared libs with .so, +# Darwin has PLIST.Darwin which gets included automatically. +.if (${OPSYS} != "Darwin") +PLIST_SRC+= PLIST.shared +.endif + +REPLACE_PERL+= tools/build/ops2c.pl +REPLACE_PERL+= tools/build/pmc2c.pl +REPLACE_PERL+= tools/dev/gen_makefile.pl +REPLACE_PERL+= tools/dev/mk_language_shell.pl +REPLACE_PERL+= tools/dev/reconfigure.pl +REPLACE_PERL+= lib/Parrot/Op.pm +#REPLACE_PERL+= lib/Parrot/OpLib/core.pm +REPLACE_PERL+= lib/Parrot/OpTrans/CPrederef.pm +REPLACE_PERL+= lib/Parrot/OpsFile.pm + + +REPLACE_INTERPRETER+= parrot +REPLACE.parrot.old= .*parrot[^[:space:]]* +REPLACE.parrot.new= ${PREFIX}/bin/parrot +REPLACE_FILES.parrot+= tools/dev/pbc_to_exe.pir + + pre-install: ${CHMOD} -R g-w ${WRKSRC} -post-install: - if [ -e ${PREFIX}/lib/libparrot.so.${VERSION} ]; then \ - ${LN} -s libparrot.so.${VERSION} ${PREFIX}/lib/libparrot.so ; \ - fi - .include "../../textproc/icu/buildlink3.mk" .include "../../mk/bsd.pkg.mk"