From owner-cvs-ports Tue Feb 11 18:22:33 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id SAA10948 for cvs-ports-outgoing; Tue, 11 Feb 1997 18:22:33 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA10892; Tue, 11 Feb 1997 18:22:10 -0800 (PST) Received: from cabri.obs-besancon.fr (cabri.obs-besancon.fr [193.52.184.3]) by who.cdrom.com (8.7.5/8.6.11) with SMTP id RAA02836 ; Tue, 11 Feb 1997 17:43:03 -0800 (PST) Received: by cabri.obs-besancon.fr (5.57/Ultrix3.0-C) id AA05493; Wed, 12 Feb 97 02:44:39 +0100 Date: Wed, 12 Feb 97 02:44:39 +0100 Message-Id: <9702120144.AA05493@cabri.obs-besancon.fr> From: Jean-Marc Zucconi To: asami@vader.cs.berkeley.edu Cc: roberto@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-ports@freefall.freebsd.org In-Reply-To: <199702111056.CAA25785@silvia.HIP.Berkeley.EDU> (asami@vader.cs.berkeley.edu) Subject: Re: cvs commit: ports/misc/ispell Makefile X-Mailer: Emacs Sender: owner-cvs-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >>>>> Satoshi Asami writes: > * > and do the appropriate dance (see print/psutils/Makefile) to create > * > language-specific packages. > * > * This not so easy, because the PLIST will be different for the 3 > * packages. This means 3 (slightly) different ports unless you want to > * make the packages 'by hand'. > Hmm. Will the following patch help? You can define PLIST to be > something other than "${PKGDIR}/PLIST" for non-default cases. Well, here is the modified makefile. With your patch, I have been able to build the 3 packages with 'make', 'make ISPELL_LANG=british' and 'make ISPELL_LANG=french'. # New ports collection makefile for: ispell # Version required: 3.1.20 # Date created: 6 November 1994 # Whom: jmz # # $Id: Makefile,v 1.17 1997/02/07 23:03:11 jmz Exp $ # DISTNAME= ispell-3.1 PKGNAME= ${ISPELL}ispell-3.1.20 CATEGORIES= misc MASTER_SITES= ftp://ftp.cs.ucla.edu/pub/ispell-3.1/ DISTFILES= ispell-3.1.20.tar.gz PLIST= ${PKGDIR}/${ISPELL}PLIST MAINTAINER= jmz@FreeBSD.org MAKE_FLAGS= TMPDIR=${.CURDIR} -f MAN1= buildhash.1 findaffix.1 ispell.1 munchlist.1 \ sq.1 tryaffix.1 unsq.1 MAN4= ispell.4 english.4 pre-fetch pre-build: .if !defined(ISPELL_LANG) @echo '******************************************************' @echo '* Note that you can build a french/english version *' @echo '* by typing "make ISPELL_LANG=french" and a british *' @echo '* version by typing "make ISPELL_LANG=british" *' @echo '******************************************************' .endif .if defined(ISPELL_LANG) .if ${ISPELL_LANG}==french EXTRA_DICT= francais-IREQ-1.4.tar.gz MASTER_SITES+= ftp://ftp.robot.ireq.ca/pub/ispell/ DISTFILES+= ${EXTRA_DICT} ISPELL= fr- .else ISPELL= uk- .endif .endif pre-configure: .if defined(EXTRA_DICT) @echo ${EXTRA_DICT} > ${WRKDIR}/extra_dict .endif post-configure: .if defined(ISPELL_LANG) .if ${ISPELL_LANG}==british @mv ${WRKSRC}/local.h ${WRKSRC}/local.h.old; \ sed -e s/american/british/g <${WRKSRC}/local.h.old >${WRKSRC}/local.h .endif .endif @echo "#define CFLAGS \"${CFLAGS}\"" >> ${WRKSRC}/local.h .include Jean-Marc _____________________________________________________________________________ Jean-Marc Zucconi Observatoire de Besancon F 25010 Besancon cedex PGP Key: finger jmz@cabri.obs-besancon.fr =============================================================================