diff options
author | stefan <stefan@FreeBSD.org> | 2010-06-26 20:02:07 +0800 |
---|---|---|
committer | stefan <stefan@FreeBSD.org> | 2010-06-26 20:02:07 +0800 |
commit | 138ae9d6997e5112f793950f67e6e00f678e30eb (patch) | |
tree | 3cfb9d3aeb43c22372163434f13eb8c70504e78b /lang/gprolog | |
parent | 9044263651d0e607e6e6577875d4b39c3e313047 (diff) | |
download | freebsd-ports-gnome-138ae9d6997e5112f793950f67e6e00f678e30eb.tar.gz freebsd-ports-gnome-138ae9d6997e5112f793950f67e6e00f678e30eb.tar.zst freebsd-ports-gnome-138ae9d6997e5112f793950f67e6e00f678e30eb.zip |
- Fix plist with NOPORTDOCS/NOPORTEXAMPLES. [1]
- Update MAINTAINER. [2]
PR: ports/141440 [2]
Submitted by: Nathan Smoot <n.smoot@gmail.com> [2]
Patch by: swell.k@gmail.com [1]
Feature safe: yes
Diffstat (limited to 'lang/gprolog')
-rw-r--r-- | lang/gprolog/Makefile | 21 | ||||
-rw-r--r-- | lang/gprolog/pkg-plist | 66 |
2 files changed, 16 insertions, 71 deletions
diff --git a/lang/gprolog/Makefile b/lang/gprolog/Makefile index 05ba801c9b7a..04129eba6cc6 100644 --- a/lang/gprolog/Makefile +++ b/lang/gprolog/Makefile @@ -7,10 +7,11 @@ PORTNAME= gprolog PORTVERSION= 1.3.1 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= http://www.gprolog.org/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= n.smoot@gmail.com COMMENT= A free Prolog compiler ONLY_FOR_ARCHS= i386 amd64 @@ -19,16 +20,26 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src USE_GMAKE= yes USE_AUTOTOOLS= autoconf:262 -CONFIGURE_ARGS= --with-c-flags="${CFLAGS}" \ - --with-doc-dir="${DOCSDIR}" \ - --with-examples-dir="${EXAMPLESDIR}" +CONFIGURE_ARGS= --with-c-flags="${CFLAGS}" CONFIGURE_TARGET= ${ARCH:S/amd64/x86_64/}-portbld-freebsd${OSREL} PLIST_SUB+= GPROLOG_VER=${PORTVERSION} +.include <bsd.port.pre.mk> + +.if !defined(NOPORTDOCS) PORTDOCS= * +CONFIGURE_ARGS+=--with-doc-dir="${DOCSDIR}" +.else +CONFIGURE_ARGS+=--with-doc-dir="${WRKDIR}/docs" +.endif -.include <bsd.port.pre.mk> +.if !defined(NOPORTEXAMPLES) +PORTEXAMPLES= * +CONFIGURE_ARGS+=--with-examples-dir="${EXAMPLESDIR}" +.else +CONFIGURE_ARGS+=--with-examples-dir="${WRKDIR}/examples" +.endif .if defined(WITHOUT_FD) CONFIGURE_ARGS+=--disable-fd-solver diff --git a/lang/gprolog/pkg-plist b/lang/gprolog/pkg-plist index 1afbc6238ecc..32258f1cee05 100644 --- a/lang/gprolog/pkg-plist +++ b/lang/gprolog/pkg-plist @@ -27,72 +27,6 @@ gprolog-%%GPROLOG_VER%%/COPYING gprolog-%%GPROLOG_VER%%/VERSION gprolog-%%GPROLOG_VER%%/NEWS gprolog-%%GPROLOG_VER%%/ChangeLog -%%EXAMPLESDIR%%/ExamplesPl/Makefile -%%EXAMPLESDIR%%/ExamplesPl/README -%%EXAMPLESDIR%%/ExamplesPl/PROGS -%%EXAMPLESDIR%%/ExamplesPl/boyer.pl -%%EXAMPLESDIR%%/ExamplesPl/browse.pl -%%EXAMPLESDIR%%/ExamplesPl/cal.pl -%%EXAMPLESDIR%%/ExamplesPl/chat_parser.pl -%%EXAMPLESDIR%%/ExamplesPl/common.pl -%%EXAMPLESDIR%%/ExamplesPl/crypt.pl -%%EXAMPLESDIR%%/ExamplesPl/ham.pl -%%EXAMPLESDIR%%/ExamplesPl/hook.pl -%%EXAMPLESDIR%%/ExamplesPl/meta_qsort.pl -%%EXAMPLESDIR%%/ExamplesPl/nand.pl -%%EXAMPLESDIR%%/ExamplesPl/nrev.pl -%%EXAMPLESDIR%%/ExamplesPl/poly_10.pl -%%EXAMPLESDIR%%/ExamplesPl/qsort.pl -%%EXAMPLESDIR%%/ExamplesPl/queens.pl -%%EXAMPLESDIR%%/ExamplesPl/queensn.pl -%%EXAMPLESDIR%%/ExamplesPl/query.pl -%%EXAMPLESDIR%%/ExamplesPl/reducer.pl -%%EXAMPLESDIR%%/ExamplesPl/sdda.pl -%%EXAMPLESDIR%%/ExamplesPl/sendmore.pl -%%EXAMPLESDIR%%/ExamplesPl/tak.pl -%%EXAMPLESDIR%%/ExamplesPl/tak_gvar.pl -%%EXAMPLESDIR%%/ExamplesPl/zebra.pl -%%EXAMPLESDIR%%/ExamplesC/Makefile -%%EXAMPLESDIR%%/ExamplesC/README -%%EXAMPLESDIR%%/ExamplesC/examp.pl -%%EXAMPLESDIR%%/ExamplesC/new_main.pl -%%EXAMPLESDIR%%/ExamplesC/examp_c.c -%%EXAMPLESDIR%%/ExamplesC/new_main_c.c -%%EXAMPLESDIR%%/ExamplesFD/Makefile -%%EXAMPLESDIR%%/ExamplesFD/alpha.pl -%%EXAMPLESDIR%%/ExamplesFD/array.pl -%%EXAMPLESDIR%%/ExamplesFD/bdiag.pl -%%EXAMPLESDIR%%/ExamplesFD/bdonald.pl -%%EXAMPLESDIR%%/ExamplesFD/bpigeon.pl -%%EXAMPLESDIR%%/ExamplesFD/bqueens.pl -%%EXAMPLESDIR%%/ExamplesFD/bramsey.pl -%%EXAMPLESDIR%%/ExamplesFD/bridge.pl -%%EXAMPLESDIR%%/ExamplesFD/bridge1.pl -%%EXAMPLESDIR%%/ExamplesFD/bschur.pl -%%EXAMPLESDIR%%/ExamplesFD/bsend.pl -%%EXAMPLESDIR%%/ExamplesFD/cars.pl -%%EXAMPLESDIR%%/ExamplesFD/crypta.pl -%%EXAMPLESDIR%%/ExamplesFD/digit8.pl -%%EXAMPLESDIR%%/ExamplesFD/donald.pl -%%EXAMPLESDIR%%/ExamplesFD/eq10.pl -%%EXAMPLESDIR%%/ExamplesFD/eq20.pl -%%EXAMPLESDIR%%/ExamplesFD/five.pl -%%EXAMPLESDIR%%/ExamplesFD/gardner.pl -%%EXAMPLESDIR%%/ExamplesFD/langford.pl -%%EXAMPLESDIR%%/ExamplesFD/magic.pl -%%EXAMPLESDIR%%/ExamplesFD/magsq.pl -%%EXAMPLESDIR%%/ExamplesFD/multipl.pl -%%EXAMPLESDIR%%/ExamplesFD/partit.pl -%%EXAMPLESDIR%%/ExamplesFD/qg5.pl -%%EXAMPLESDIR%%/ExamplesFD/queens.pl -%%EXAMPLESDIR%%/ExamplesFD/send.pl -%%EXAMPLESDIR%%/ExamplesFD/square.pl -%%EXAMPLESDIR%%/ExamplesFD/srq.pl -%%EXAMPLESDIR%%/ExamplesFD/queens_fd.fd -@dirrm %%EXAMPLESDIR%%/ExamplesFD -@dirrm %%EXAMPLESDIR%%/ExamplesC -@dirrm %%EXAMPLESDIR%%/ExamplesPl -@dirrm %%EXAMPLESDIR%% @dirrm gprolog-%%GPROLOG_VER%%/lib @dirrm gprolog-%%GPROLOG_VER%%/include @dirrm gprolog-%%GPROLOG_VER%%/bin |