diff options
author | mat <mat@FreeBSD.org> | 2014-01-28 06:15:27 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2014-01-28 06:15:27 +0800 |
commit | b0be1cea29d3a6dfa3809f2e1c4f2937ac0a2e9f (patch) | |
tree | 7563772ad2b26601325f77c8908364ccadef391a /textproc | |
parent | 97666370e2d3e631a6a6b309d5c037ce3f479ebd (diff) | |
download | freebsd-ports-gnome-b0be1cea29d3a6dfa3809f2e1c4f2937ac0a2e9f.tar.gz freebsd-ports-gnome-b0be1cea29d3a6dfa3809f2e1c4f2937ac0a2e9f.tar.zst freebsd-ports-gnome-b0be1cea29d3a6dfa3809f2e1c4f2937ac0a2e9f.zip |
Convert to staging.
Sponsored by: Absolight
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/gmetadom/Makefile | 30 | ||||
-rw-r--r-- | textproc/gmetadom/pkg-plist | 2 |
2 files changed, 6 insertions, 26 deletions
diff --git a/textproc/gmetadom/Makefile b/textproc/gmetadom/Makefile index 1800fe54f82a..f847f6a33808 100644 --- a/textproc/gmetadom/Makefile +++ b/textproc/gmetadom/Makefile @@ -19,37 +19,15 @@ LDFLAGS+= -L${LOCALBASE}/lib USE_LDCONFIG= yes OPTIONS_DEFINE= OCAML +OPTIONS_SUB= yes OCAML_DESC= OCAML language support -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MOCAML} -BUILD_DEPENDS+= ocamlfind:${PORTSDIR}/devel/ocaml-findlib \ - ocamlc:${PORTSDIR}/lang/ocaml -PLIST_SUB+= OCAML="" -.else -CONFIGURE_ARGS+= HAVE_OCAMLDEP=no HAVE_OCAMLFIND=no HAVE_OCAMLOPT=no -PLIST_SUB+= OCAML="@comment " -.endif +OCAML_BUILD_DEPENDS= ocamlfind:${PORTSDIR}/devel/ocaml-findlib \ + ocamlc:${PORTSDIR}/lang/ocaml +OCAML_CONFIGURE_OFF= HAVE_OCAMLDEP=no HAVE_OCAMLFIND=no HAVE_OCAMLOPT=no post-patch: @${REINPLACE_CMD} -e 's/-lstdc++//g' ${WRKSRC}/src/gdome_cpp_smart/Makefile.in -# Shim to clean-up a previous bad install - this can be removed -# PORTVERSION > 0.2.6 along with the associated pkg-plist @exec -# entries. -pre-install: - @if [ -d ${LOCALBASE}/lib/ocaml/gdome2 ]; then \ - ${RM} -f ${LOCALBASE}/lib/ocaml/gdome2/* 2>/dev/null && \ - ${RMDIR} ${LOCALBASE}/lib/ocaml/gdome2 2>/dev/null; \ - fi - @if [ -f ${LOCALBASE}/lib/ocaml/stublibs/dllmlgdome.so ]; then \ - ${RM} -f ${LOCALBASE}/lib/ocaml/stublibs/dllmlgdome.so 2>/dev/null; \ - fi - @if [ -f ${LOCALBASE}/lib/ocaml/stublibs/dllmlgdome.so.owner ]; then \ - ${RM} -f ${LOCALBASE}/lib/ocaml/stublibs/dllmlgdome.so.owner 2>/dev/null; \ - fi - .include <bsd.port.mk> diff --git a/textproc/gmetadom/pkg-plist b/textproc/gmetadom/pkg-plist index f6896d4db103..768e2032ea83 100644 --- a/textproc/gmetadom/pkg-plist +++ b/textproc/gmetadom/pkg-plist @@ -154,6 +154,8 @@ libdata/pkgconfig/gdome2-cpp-smart.pc @dirrm include/gmetadom/gdome_cpp_smart @dirrm include/gmetadom %%OCAML%%@dirrm lib/ocaml/gdome2 +@comment Shim to clean-up a previous bad install - this can be removed +@comment PORTVERSION > 0.2.6 @exec if [ -d %D/lib/ocaml/gdome2 ] ; then /bin/rm -f %D/lib/ocaml/gdome2/* 2>/dev/null && /bin/rmdir %D/lib/ocaml/gdome2 2>/dev/null ; fi @exec if [ -f %D/lib/ocaml/stublibs/dllmlgdome.so ] ; then /bin/rm -f %D/lib/ocaml/stublibs/dllmlgdome.so 2>/dev/null ; fi @exec if [ -f %D/lib/ocaml/stublibs/dllmlgdome.so.owner ] ; then /bin/rm -f %D/lib/ocaml/stublibs/dllmlgdome.so.owner 2>/dev/null ; fi |