diff options
author | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-08-08 04:08:20 +0800 |
---|---|---|
committer | mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-08-08 04:08:20 +0800 |
commit | cba973e0742690c51e7a480a76509f84e6e9df16 (patch) | |
tree | d294b9ddb163d99dff4a90e5a7e6119897dfdf19 | |
parent | 6211fa24eae9f42ea741cb339bcece8209556929 (diff) | |
download | marcuscom-ports-cba973e0742690c51e7a480a76509f84e6e9df16.tar marcuscom-ports-cba973e0742690c51e7a480a76509f84e6e9df16.tar.gz marcuscom-ports-cba973e0742690c51e7a480a76509f84e6e9df16.tar.bz2 marcuscom-ports-cba973e0742690c51e7a480a76509f84e6e9df16.tar.lz marcuscom-ports-cba973e0742690c51e7a480a76509f84e6e9df16.tar.xz marcuscom-ports-cba973e0742690c51e7a480a76509f84e6e9df16.tar.zst marcuscom-ports-cba973e0742690c51e7a480a76509f84e6e9df16.zip |
Sync w/ FreeBSD ports tree.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6964 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | x11-toolkits/ocaml-lablgtk2/Makefile | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/x11-toolkits/ocaml-lablgtk2/Makefile b/x11-toolkits/ocaml-lablgtk2/Makefile index 0f499b2ee..e97eca71f 100644 --- a/x11-toolkits/ocaml-lablgtk2/Makefile +++ b/x11-toolkits/ocaml-lablgtk2/Makefile @@ -6,7 +6,7 @@ PORTNAME= lablgtk2 PORTVERSION= 2.6.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= x11-toolkits MASTER_SITES= ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/olabl/ \ http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/ \ @@ -15,14 +15,12 @@ MASTER_SITES= ftp://ftp.kurims.kyoto-u.ac.jp/pub/lang/olabl/ \ PKGNAMEPREFIX= ocaml- DISTNAME= lablgtk-${PORTVERSION} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ssedov@mbsd.msk.ru COMMENT= An Objective Caml interface to GTK+ 2.x -BUILD_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml -RUN_DEPENDS+= ocamlc:${PORTSDIR}/lang/ocaml - USE_GMAKE= yes USE_GNOME= gtk20 +USE_OCAML= yes OPTIONS= GLADE "With glade support" ON \ GNOMECANVAS "With gnomecanvas support" ON \ @@ -40,7 +38,10 @@ ALL_TARGET= all opt CONFIGURE_ARGS= --prefix=${PREFIX} --with-libdir=${PREFIX}/lib/ocaml +PATTERN= [[:space:]]*(do|then)?[[:space:]]*)cp([[:space:]] + .include <bsd.port.pre.mk> +.include "${PORTSDIR}/lang/ocaml/bsd.ocaml.mk" .if (exists(${LOCALBASE}/bin/lablgl) && exists(${LOCALBASE}/libdata/pkgconfig/gtkgl-2.0.pc)) || defined(WITH_GTKTL) CONFIGURE_ARGS+= --with-gl @@ -115,6 +116,14 @@ CONFIGURE_ARGS+= --without-gtkspell PLIST_SUB+= GTKSPELL="@comment " .endif +post-extract: + @${REINPLACE_CMD} -E \ + -e 's,^(CFLAGS[[:space:]]*\+=[[:space:]]*-O),\1 ${CFLAGS},' \ + -e 's,^(${PATTERN}+.*INSTALLDIR),\1\$${BSD_INSTALL_DATA} \3,' \ + -e 's,^(${PATTERN}+.*BINDIR),\1\$${BSD_INSTALL_SCRIPT} \3,' \ + -e 's,^(${PATTERN}+.*LIBDIR),\1\$${BSD_INSTALL_DATA} \3,' \ + ${WRKSRC}/src/Makefile + post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${EXAMPLESDIR} |