Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --- pkgsrc/lang/parrot/Makefile 2001/09/13 14:18:03 1.1.1.1 +++ pkgsrc/lang/parrot/Makefile 2009/10/22 14:51:26 1.22.2.1 @@ -1,29 +1,55 @@ -# $NetBSD: Makefile,v 1.1.1.1 2001/09/13 14:18:03 agc Exp $ +# $NetBSD: Makefile,v 1.22.2.1 2009/10/22 14:51:26 tron Exp $ # -DISTNAME= parrot-0.0.1 -CATEGORIES= lang -MASTER_SITES= http://www.netthink.co.uk/downloads/ - -MAINTAINER= packages@netbsd.org -HOMEPAGE= http://www.python.org/parrot.html -COMMENT= bytecode language possibly to be used by Perl/Python - -USE_PERL5= # defined - -ALL_TARGET= test_prog - -do-install: - ${INSTALL_PROGRAM_DIR} ${PREFIX}/include/parrot - ${INSTALL_PROGRAM_DIR} ${PREFIX}/share/doc/parrot - ${INSTALL_PROGRAM_DIR} ${PREFIX}/share/parrot - ${INSTALL_PROGRAM} ${WRKSRC}/test_prog ${PREFIX}/bin/parrot - ${INSTALL_SCRIPT} ${WRKSRC}/assemble.pl ${PREFIX}/share/parrot - ${INSTALL_SCRIPT} ${WRKSRC}/disassemble.pl ${PREFIX}/share/parrot - ${INSTALL_SCRIPT} ${WRKSRC}/t/test*.pasm ${PREFIX}/share/parrot - ${INSTALL_DATA} ${WRKSRC}/opcode_table ${PREFIX}/include/parrot - ${INSTALL_DATA} ${WRKSRC}/interp_guts.h ${PREFIX}/include/parrot - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/parrot - ${INSTALL_DATA} ${WRKSRC}/TODO ${PREFIX}/share/doc/parrot +VERSION= 1.6.0 +PKGREVISION= 1 +RTYPE= devel +DISTNAME= parrot-${VERSION} +CATEGORIES= lang +MASTER_SITES= ftp://ftp.parrot.org/pub/parrot/releases/${RTYPE}/${VERSION}/ + +MAINTAINER= he@NetBSD.org +HOMEPAGE= http://www.parrotcode.org/ +COMMENT= Virtual machine made to run Perl 6 and other languages +LICENSE= artistic-2.0 + +PKG_DESTDIR_SUPPORT= user-destdir +USE_LANGUAGES= c c++ +USE_TOOLS+= perl +PTHREAD_OPTS+= require +BUILD_TARGET= world +TEST_TARGET= test +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 + +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}|' + +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 + +pre-install: + ${CHMOD} -R g-w ${WRKSRC} + +.include "../../textproc/icu/buildlink3.mk" .include "../../mk/bsd.pkg.mk"