diff options
author | rillig <rillig> | 2006-02-02 20:47:26 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-02-02 20:47:26 +0000 |
commit | 4e1555473d6ecaf4342f5270986ee7fae792865a (patch) | |
tree | 18114df37c979a4b8a1f1f0d9f11ae5a480eec7e /lang/ocaml | |
parent | 2c6ecdcb839f3561196169e74cd4e7c5850d74f9 (diff) | |
download | pkgsrc-4e1555473d6ecaf4342f5270986ee7fae792865a.tar.gz |
Added support for dynamic loading on NetBSD. Bumped PKGREVISION.
Fixed almost all pkglint -Wall warnings.
Diffstat (limited to 'lang/ocaml')
-rw-r--r-- | lang/ocaml/Makefile | 6 | ||||
-rw-r--r-- | lang/ocaml/Makefile.common | 18 | ||||
-rw-r--r-- | lang/ocaml/buildlink3.mk | 28 | ||||
-rw-r--r-- | lang/ocaml/distinfo | 4 | ||||
-rw-r--r-- | lang/ocaml/patches/patch-at | 4 |
5 files changed, 33 insertions, 27 deletions
diff --git a/lang/ocaml/Makefile b/lang/ocaml/Makefile index f324f710489..dca356fca7f 100644 --- a/lang/ocaml/Makefile +++ b/lang/ocaml/Makefile @@ -1,7 +1,9 @@ -# $NetBSD: Makefile,v 1.43 2006/01/16 09:41:48 adam Exp $ +# $NetBSD: Makefile,v 1.44 2006/02/02 20:47:26 rillig Exp $ .include "Makefile.common" +PKGREVISION= 1 + CONFIGURE_ARGS+= -no-tk CONFIGURE_ENV+= disable_x11=yes @@ -18,7 +20,7 @@ PLIST_SRC+= ${PKGDIR}/PLIST.prof PLIST_SRC+= ${PKGDIR}/PLIST .endif -.if ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly" +.if ${OPSYS} == "Darwin" || ${OPSYS} == "DragonFly" || ${OPSYS} == "NetBSD" PLIST_SRC+= ${PKGDIR}/PLIST.stub .endif diff --git a/lang/ocaml/Makefile.common b/lang/ocaml/Makefile.common index b7ed32e09f0..7131fca2928 100644 --- a/lang/ocaml/Makefile.common +++ b/lang/ocaml/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.13 2006/01/16 09:41:48 adam Exp $ +# $NetBSD: Makefile.common,v 1.14 2006/02/02 20:47:26 rillig Exp $ DISTNAME= ocaml-3.09.1 CATEGORIES= lang @@ -14,11 +14,11 @@ PATCHDIR= ${.CURDIR}/../../lang/ocaml/patches USE_TOOLS+= gmake HAS_CONFIGURE= yes -CONFIGURE_ARGS+= -prefix ${PREFIX} -CONFIGURE_ARGS+= -libs "${LDFLAGS}" +CONFIGURE_ENV+= BDB_LIBS=${BDB_LIBS:Q} +CONFIGURE_ENV+= BDB_BUILTIN=${USE_BUILTIN.${BDB_TYPE}:Q} +CONFIGURE_ARGS+= -prefix ${PREFIX:Q} +CONFIGURE_ARGS+= -libs ${LDFLAGS:Q} CONFIGURE_ARGS+= -with-pthread -CONFIGURE_ENV+= BDB_LIBS=${BDB_LIBS:Q} \ - BDB_BUILTIN=${USE_BUILTIN.${BDB_TYPE}} CPPFLAGS+= -DDB_DBM_HSEARCH .include "../../mk/bsd.prefs.mk" @@ -31,11 +31,13 @@ INSTALL_UNSTRIPPED= yes post-extract: cp-power-bsd cp-gnu-config +.PHONY: cp-power-bsd cp-power-bsd: - @${CP} ${WRKSRC}/asmrun/power-elf.S ${WRKSRC}/asmrun/power-bsd.S + @${CP} ${WRKSRC:Q}/asmrun/power-elf.S ${WRKSRC:Q}/asmrun/power-bsd.S +.PHONY: cp-gnu-config cp-gnu-config: - @${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/config/gnu/ - @${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}/config/gnu/ + @${CP} ${PKGSRCDIR:Q}/mk/gnu-config/config.guess ${WRKSRC:Q}/config/gnu/ + @${CP} ${PKGSRCDIR:Q}/mk/gnu-config/config.sub ${WRKSRC:Q}/config/gnu/ .include "../../mk/pthread.buildlink3.mk" diff --git a/lang/ocaml/buildlink3.mk b/lang/ocaml/buildlink3.mk index e7a27f48d91..ab6cda86b0b 100644 --- a/lang/ocaml/buildlink3.mk +++ b/lang/ocaml/buildlink3.mk @@ -1,4 +1,4 @@ -# $NetBSD: buildlink3.mk,v 1.13 2006/01/27 19:03:16 tonio Exp $ +# $NetBSD: buildlink3.mk,v 1.14 2006/02/02 20:47:26 rillig Exp $ BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ OCAML_BUILDLINK3_MK:= ${OCAML_BUILDLINK3_MK}+ @@ -28,22 +28,24 @@ OCAML_WRAPPERS= ocamlc ocamlc.opt ocamlcp ocamlmklib ocamlmktop \ ocamlopt ocamlopt.opt OCAMLBIN_WRAPPERS= ocaml +.PHONY: ocaml-wrappers ocaml-wrappers: - ${_PKG_SILENT}${_PKG_DEBUG} \ - for w in ${OCAML_WRAPPERS}; do \ - ${SED} -e 's|@SH@|${SH}|g' \ + ${_PKG_SILENT}${_PKG_DEBUG} set -e; \ + for w in ${OCAML_WRAPPERS}; do \ + ${SED} -e 's|@SH@|${SH}|g' \ -e 's|@OCAML_PREFIX@|${BUILDLINK_PREFIX.ocaml}|g' \ - -e 's|@CFLAGS@|${CFLAGS}|g' \ - -e 's|@LDFLAGS@|${LDFLAGS}|g' \ - <${.CURDIR}/../../lang/ocaml/files/wrapper.sh \ - >${BUILDLINK_DIR}/bin/$$w; \ - ${CHMOD} +x ${BUILDLINK_DIR}/bin/$$w; \ + -e 's|@CFLAGS@|${CFLAGS}|g' \ + -e 's|@LDFLAGS@|${LDFLAGS}|g' \ + < ${.CURDIR:Q}/../../lang/ocaml/files/wrapper.sh \ + > ${BUILDLINK_DIR:Q}/bin/"$$w"; \ + ${CHMOD} +x ${BUILDLINK_DIR:Q}/bin/"$$w"; \ done - for w in ${OCAMLBIN_WRAPPERS}; do \ - ${LN} -s ${BUILDLINK_PREFIX.ocaml}/bin/$$w \ - ${BUILDLINK_DIR}/bin/$$w; \ + ${_PKG_SILENT}${_PKG_DEBUG} set -e; \ + for w in ${OCAMLBIN_WRAPPERS}; do \ + ${LN} -s ${BUILDLINK_PREFIX.ocaml:Q}/bin/"$$w" \ + ${BUILDLINK_DIR:Q}/bin/"$$w"; \ done .endif # OCAML_BUILDLINK3_MK -BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/lang/ocaml/distinfo b/lang/ocaml/distinfo index 84281f351c6..8c657808267 100644 --- a/lang/ocaml/distinfo +++ b/lang/ocaml/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.33 2006/01/16 09:41:48 adam Exp $ +$NetBSD: distinfo,v 1.34 2006/02/02 20:47:26 rillig Exp $ SHA1 (ocaml-3.09.1.tar.bz2) = e74ceeb623494bee08effac4a4cef301e71dd496 RMD160 (ocaml-3.09.1.tar.bz2) = 1c8f2056a0e4356d9a99561c297eb867bf96ef4f @@ -19,7 +19,7 @@ SHA1 (patch-ao) = dfdd58093e77db9c3d8507a51faa0320c56e3998 SHA1 (patch-ap) = def9bf7779e59844c4e4790363f040aa17aa8d86 SHA1 (patch-aq) = c877ae103ba1e5c7a8c4c694627610d485d3f222 SHA1 (patch-ar) = 4f5df951be21c21f644e7f75f4e74bdf141ef0c5 -SHA1 (patch-at) = 753a907e52d69d72562a24a7841eb2abecc43906 +SHA1 (patch-at) = 02331822fe7d87975b14f8f2294059c6d031e457 SHA1 (patch-au) = f1bf9e793c90a6e2fb8c8a058d7252646c870930 SHA1 (patch-av) = f56c8924b81a620602bc5a67b0c4459b721701d2 SHA1 (patch-aw) = a2dee7fa2181008fb9cc632032a9a07aec422afa diff --git a/lang/ocaml/patches/patch-at b/lang/ocaml/patches/patch-at index 9e9b4f63a01..75e33b8291e 100644 --- a/lang/ocaml/patches/patch-at +++ b/lang/ocaml/patches/patch-at @@ -1,4 +1,4 @@ -$NetBSD: patch-at,v 1.8 2006/01/16 09:41:48 adam Exp $ +$NetBSD: patch-at,v 1.9 2006/02/02 20:47:26 rillig Exp $ --- configure.orig 2006-01-04 10:26:42.000000000 +0100 +++ configure @@ -7,7 +7,7 @@ $NetBSD: patch-at,v 1.8 2006/01/16 09:41:48 adam Exp $ if test $withsharedlibs = "yes"; then case "$host" in - *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*) -+ *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-dragonfly*) ++ *-*-linux-gnu|*-*-linux|*-*-freebsd[3-9]*|*-*-netbsd*|*-*-dragonfly*) sharedcccompopts="-fPIC" mksharedlib="$bytecc -shared -o" bytecclinkopts="$bytecclinkopts -Wl,-E" |