From 751790b51ae4c1152e8944cbaf99d49b1377e95b Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Fri, 20 Nov 1998 04:15:15 +0000 Subject: Remove LOOP_VAR and replace it with tiny Makefiles using MASTERDIR to share most files. Repository copy the default to explicitly named directories to avoid any confusion. Greatly simplify the shared Makefiles, since we are now in different subdirectories, we don't need "a4-install" stuff. While I'm here, consistently name the variables. Here are the guidelines (master port is in brackets) DOCFORMAT: [html] pdf ps KONFONT: 14dot [16dot] PAPERSIZE: a4 [letter] letterdj RESOLUTION: 118 240 [300] 360 400 600 "math/r" has been copied to "R-a4" and "R-letter", to follow the spirit of the original port. "japanese/kon" is renamed to "kon2-*", since that seems to be the basename. --- graphics/Makefile | 6 ++++-- graphics/gimp-manual-html/Makefile | 21 +++++---------------- graphics/gimp-manual-pdf/Makefile | 12 ++++++++++++ graphics/gimp-manual-ps/Makefile | 12 ++++++++++++ 4 files changed, 33 insertions(+), 18 deletions(-) create mode 100644 graphics/gimp-manual-pdf/Makefile create mode 100644 graphics/gimp-manual-ps/Makefile (limited to 'graphics') diff --git a/graphics/Makefile b/graphics/Makefile index 4f4ae83e1100..6c334a81dd4a 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.98 1998/11/18 10:07:49 flathill Exp $ +# $Id: Makefile,v 1.99 1998/11/19 17:01:31 vanilla Exp $ # SUBDIR += 4va @@ -25,7 +25,9 @@ SUBDIR += gifmerge SUBDIR += giftool SUBDIR += giftrans - SUBDIR += gimp-manual + SUBDIR += gimp-manual-html + SUBDIR += gimp-manual-pdf + SUBDIR += gimp-manual-ps SUBDIR += gimp1 SUBDIR += gplot SUBDIR += gqview diff --git a/graphics/gimp-manual-html/Makefile b/graphics/gimp-manual-html/Makefile index 0fe4f8f5f391..63703c499082 100644 --- a/graphics/gimp-manual-html/Makefile +++ b/graphics/gimp-manual-html/Makefile @@ -3,7 +3,7 @@ # Date created: 5 June 1998 # Whom: Brett Taylor # -# $Id: Makefile,v 1.3 1998/08/05 09:31:09 asami Exp $ +# $Id: Makefile,v 1.4 1998/10/30 11:21:54 asami Exp $ # DISTNAME= GimpUserManual-1.0.0 @@ -13,15 +13,14 @@ MASTER_SITES= ftp://manual.gimp.org/pub/manual/ MAINTAINER= brett@peloton.physics.montana.edu -LOOP_VAR= DOCFORMAT -LOOP_OPTIONS= HTML PDF PS - .if !defined(DOCFORMAT) DOCFORMAT=HTML -DOCFORMAT_UNSPECIFIED=YES .else .if ${DOCFORMAT} != "HTML" && ${DOCFORMAT} != "PDF" && ${DOCFORMAT} != "PS" -DOCFORMAT_INVALID=YES +.BEGIN: + @${ECHO} "ERROR: invalid value for DOCFORMAT: \"${DOCFORMAT}\"" + @${ECHO} "Possible values are: HTML, PDF, PS." + @${FALSE} .endif .endif @@ -34,16 +33,6 @@ pre-fetch: @${ECHO} "the PDF version is 14 MB and the HTML tar-bzip'ed" @${ECHO} "version is 16 MB (unpacks to 18.7 MB)." -.if defined(DOCFORMAT_UNSPECIFIED) - @${ECHO} "(DOCFORMAT not specified: defaulting to HTML format.)" - @${ECHO} "To choose the one you want, type:" - @${ECHO} " make DOCFORMAT={HTML,PDF,PS} [install]" -.elif defined(DOCFORMAT_INVALID) - @echo "ERROR: invalid value for DOCFORMAT: \"${DOCFORMAT}\"" - @echo "Possible values are: HTML (default), PDF, PS." - @${FALSE} -.endif - .if ${DOCFORMAT} == "HTML" EXTRACT_SUFX= -html.tar.bz2 WRKSRC= ${WRKDIR}/GimpUserManaul_v1.0.0 diff --git a/graphics/gimp-manual-pdf/Makefile b/graphics/gimp-manual-pdf/Makefile new file mode 100644 index 000000000000..a71bf69aa1fd --- /dev/null +++ b/graphics/gimp-manual-pdf/Makefile @@ -0,0 +1,12 @@ +# New ports collection makefile for: gimp-manual-1.0.0 (PDF) +# Version required: 1.0.0 +# Date created: 5 June 1998 +# Whom: Brett Taylor +# +# $Id$ +# + +DOCFORMAT= PDF +MASTERDIR= ${.CURDIR}/../gimp-manual-html + +.include "${MASTERDIR}/Makefile" diff --git a/graphics/gimp-manual-ps/Makefile b/graphics/gimp-manual-ps/Makefile new file mode 100644 index 000000000000..81fcabcfd1fb --- /dev/null +++ b/graphics/gimp-manual-ps/Makefile @@ -0,0 +1,12 @@ +# New ports collection makefile for: gimp-manual-1.0.0 (PS) +# Version required: 1.0.0 +# Date created: 5 June 1998 +# Whom: Brett Taylor +# +# $Id$ +# + +DOCFORMAT= PS +MASTERDIR= ${.CURDIR}/../gimp-manual-html + +.include "${MASTERDIR}/Makefile" -- cgit v1.2.3