1997-07-27 03:31:33 +00:00
|
|
|
# New ports collection makefile for: enscript
|
|
|
|
# Version required: 1.5.0
|
|
|
|
# Date created: 24 Jul, 1997
|
|
|
|
# Whom: kline
|
|
|
|
#
|
1997-11-27 08:10:32 +00:00
|
|
|
# $Id: Makefile,v 1.3 1997/11/10 11:23:19 asami Exp $
|
1997-07-27 03:31:33 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= enscript-1.5.0
|
|
|
|
PKGNAME= enscript-${PAPERSIZE}-1.5.0
|
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
|
|
|
|
MAINTAINER= kline@thought.org
|
|
|
|
|
1997-11-10 11:23:41 +00:00
|
|
|
MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter A4
|
1997-07-27 03:31:33 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
1997-11-27 08:10:32 +00:00
|
|
|
CONFIGURE_ARGS= --disable-nls --with-media=${PAPERSIZE}
|
1997-08-05 06:37:19 +00:00
|
|
|
MAKE_FLAGS= WIDTH=${WIDTH} HEIGHT=${HEIGHT} A4_PAPERSIZE=${A4_PAPERSIZE} -f
|
1997-07-27 03:31:33 +00:00
|
|
|
|
|
|
|
MAN1= enscript.1 sliceprint.1 states.1
|
|
|
|
STRIP=
|
|
|
|
|
|
|
|
# If you want to build a static binary, uncomment the following line
|
|
|
|
#LDFLAGS+=-static
|
|
|
|
|
|
|
|
.if !defined(PAPERSIZE)
|
1997-11-27 08:10:32 +00:00
|
|
|
PAPERSIZE=A4 # set default
|
1997-07-27 03:31:33 +00:00
|
|
|
WIDTH=8.27
|
|
|
|
HEIGHT=11.64
|
|
|
|
A4_PAPERSIZE=1
|
|
|
|
PAPERSIZE_UNSPECIFIED= yes
|
|
|
|
.elif ${PAPERSIZE} == A4 || ${PAPERSIZE} == a4
|
1997-11-27 08:10:32 +00:00
|
|
|
PAPERSIZE=A4
|
1997-07-27 03:31:33 +00:00
|
|
|
WIDTH=8.27
|
|
|
|
HEIGHT=11.64
|
|
|
|
A4_PAPERSIZE=1
|
|
|
|
.elif ${PAPERSIZE} == letter || ${PAPERSIZE} == LETTER || ${PAPERSIZE} == Letter
|
1997-11-27 08:10:32 +00:00
|
|
|
PAPERSIZE=Letter
|
1997-07-27 03:31:33 +00:00
|
|
|
WIDTH=8.5
|
|
|
|
HEIGHT=11.0
|
|
|
|
A4_PAPERSIZE=0
|
|
|
|
.elif ${PAPERSIZE} == Letterdj
|
|
|
|
.else
|
|
|
|
PAPERSIZE_INVALID= yes
|
|
|
|
.endif # not defined PAPERSIZE
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if defined(PAPERSIZE_UNSPECIFIED)
|
|
|
|
@echo ""
|
|
|
|
@echo "This port builds the default A4 paper size."
|
|
|
|
@echo "If you want to select the LETTER papersize for enscript,"
|
|
|
|
@echo "type a ^C now. Then type:"
|
|
|
|
@echo ""
|
|
|
|
@echo " % make letter "
|
|
|
|
@echo ""
|
|
|
|
@echo "Install your port by typing:"
|
|
|
|
@echo ""
|
|
|
|
@echo "make letter-install {or} % make a4-install"
|
|
|
|
@echo ""
|
|
|
|
@echo "You can also set the environment variable PAPERSIZE to A4 or"
|
|
|
|
@echo "letter to configure enscript for these paper sizes"
|
|
|
|
@sleep 5
|
|
|
|
.elif defined(PAPERSIZE_INVALID)
|
|
|
|
@echo "Error: invalid value for PAPERSIZE: \"${PAPERSIZE}\""
|
|
|
|
@echo "Possible values are: A4 (default) or letter"
|
1997-08-05 06:37:19 +00:00
|
|
|
@${FALSE}
|
1997-07-27 03:31:33 +00:00
|
|
|
.endif
|
|
|
|
letter::
|
|
|
|
${MAKE} PAPERSIZE=Letter
|
|
|
|
|
|
|
|
Letter::
|
|
|
|
${MAKE} PAPERSIZE=Letter
|
|
|
|
|
|
|
|
letter-install::
|
|
|
|
${MAKE} PAPERSIZE=Letter install
|
|
|
|
|
|
|
|
Letter-install::
|
|
|
|
${MAKE} PAPERSIZE=Letter install
|
|
|
|
|
|
|
|
a4::
|
|
|
|
${MAKE} PAPERSIZE=A4
|
|
|
|
|
|
|
|
A4::
|
|
|
|
${MAKE} PAPERSIZE=A4
|
|
|
|
|
|
|
|
Letterdj::
|
|
|
|
${MAKE} PAPERSIZE=Letterdj
|
|
|
|
|
|
|
|
letterdj::
|
|
|
|
${MAKE} PAPERSIZE=Letterdj
|
|
|
|
|
|
|
|
Letterdj-install::
|
|
|
|
${MAKE} PAPERSIZE=Letterdj install
|
|
|
|
|
|
|
|
letterdj-install::
|
|
|
|
${MAKE} PAPERSIZE=Letterdj install
|
|
|
|
|
|
|
|
a4-install::
|
|
|
|
${MAKE} PAPERSIZE=a4 install
|
|
|
|
|
|
|
|
A4-install::
|
|
|
|
${MAKE} PAPERSIZE=a4 install
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for file in enscript mkafmmap states
|
1997-08-05 06:37:19 +00:00
|
|
|
strip ${PREFIX}/bin/${file}
|
1997-07-27 03:31:33 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|