6bd0d65c65
- New, optional Makefile variable HOMEPAGE, specifies a URL for the home page of the software if it has one. - The value of HOMEPAGE is used to add a link from the README.html files. - pkglint updated to know about it. The "correct" location for HOMEPAGE in the Makefile is after MAINTAINER, in that same section.
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.8 1998/08/20 15:17:23 tsarna Exp $
|
|
# FreeBSD Id: Makefile,v 1.4 1997/11/27 08:10:30 tg Exp
|
|
#
|
|
|
|
DISTNAME= enscript-1.6.1
|
|
PKGNAME= enscript-${PAPERSIZE}-1.6.1
|
|
CATEGORIES= print
|
|
MASTER_SITES= ${MASTER_SITE_GNU}
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
HOMEPAGE= http://www.ngs.fi/mtr/genscript/
|
|
|
|
CONFLICTS= enscript-Letter-1.6.0 enscript-A4-1.6.0 \
|
|
enscript-Letterdj-1.6.0
|
|
|
|
MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter or A4
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --disable-nls --with-media=${PAPERSIZE}
|
|
CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}"
|
|
MAKE_ENV+= `${CAT} ${PAPER}`
|
|
|
|
# If you want to build a static binary, uncomment the following line
|
|
#LDFLAGS+= -static
|
|
|
|
PAPERSIZE?= A4
|
|
PAPER= ${.CURDIR}/${WRKDIR:T}/PaperSize
|
|
|
|
pre-configure:
|
|
@case "X${PAPERSIZE}" in \
|
|
XA4) \
|
|
${ECHO} "WIDTH=8.27 HEIGHT=11.64" > ${PAPER}; \
|
|
;; \
|
|
XLetter) \
|
|
${ECHO} "WIDTH=8.5 HEIGHT=11.0" > ${PAPER}; \
|
|
;; \
|
|
XLetterdj) \
|
|
;; \
|
|
*) \
|
|
@${ECHO} "Error: PAPERSIZE invalid: \"${PAPERSIZE}\""; \
|
|
@${ECHO} "Possible values are: A4 (default) or Letter";\
|
|
${FALSE}; \
|
|
;; \
|
|
esac
|
|
|
|
post-install:
|
|
.for file in enscript mkafmmap states
|
|
strip ${PREFIX}/bin/${file}
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|