freebsd-ports/print/a2ps-letter/Makefile
Chuck Robey 66bfebec20 Update a2ps port to version 4.10.2. There was a PR (6663) opened
for leaving files in /, I chose to update the port from scratch
rather than troubleshoot it.  I'm very sure the new port
doesn't do that.
PR:		6663
1998-05-18 02:32:48 +00:00

59 lines
1.5 KiB
Makefile

# New ports collection makefile for: a2ps
# Version required: 4.10.2
# Date created: 17 May 1998
# Whom: Chuck Robey (chuckr@freebsd.org)
#
# $Id: Makefile,v 1.15 1998/04/19 03:39:04 itojun Exp $
#
DISTNAME= a2ps-4.10.2
PKGNAME= a2ps-${PAPERSIZE}-4.10.2
CATEGORIES= print
MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/
MAINTAINER= chuckr@FreeBSD.org
MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter A4
GNU_CONFIGURE= yes
MAN1= a2ps.1 ogonkify.1
PAPERSIZE?= Letter
STRIP=
CONFIGURE_ARGS= --with-medium=${PAPERSIZE}
Letter letter:
${MAKE} PAPERSIZE=Letter
Letterdj letterdj:
${MAKE} PAPERSIZE=Letterdj
A4 a4:
${MAKE} PAPERSIZE=A4
pre-configure:
.if ${PAPERSIZE} != A4 && ${PAPERSIZE} != Letter && ${PAPERSIZE} != Letterdj
@${ECHO}
@${ECHO} "PAPERSIZE incorrect value: ${PAPERSIZE}."
@${ECHO}
@${ECHO} "Must specify PAPERSIZE as one of A4, Letter, or Letterdj, either"
@${ECHO} "using setenv, or via Makefile targets of the same name. Note"
@${ECHO} "that each PAPERSIZE has a leading capital letter, and Letterdj"
@${ECHO} "allows a slightly larger margins for DeskJets."
@false
.endif
${ECHO} ${PAPERSIZE} > ${WRKDIR}/.media
post-install:
${LDCONFIG} -R ${PREFIX}/lib
strip ${PREFIX}/bin/a2ps
$(INSTALL_DATA) $(WRKSRC)/doc/a2ps.info* $(PREFIX)/info
$(INSTALL_MAN) $(WRKSRC)/doc/a2ps.1 $(PREFIX)/man/man1
-/usr/bin/install-info --info-dir=$(PREFIX)/info $(WRKSRC)/doc/a2ps.info
.include <bsd.port.mk>
.if exists(${WRKDIR}/.media)
PAPERSIZE=
PAPERSIZE!= ${CAT} ${WRKDIR}/.media
.endif