99a1ab44b1
was defined in bsd.port.mk was checked before bsd.port.mk was included; this should make ports with optional shared libs build on the alpha, again. However, chages require the latest bsd.port.mk
92 lines
2.2 KiB
Makefile
92 lines
2.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.9 1999/03/02 04:41:08 marc Exp $
|
|
#
|
|
|
|
DISTNAME= a2ps-4.10.4
|
|
PKGNAME= a2ps
|
|
CATEGORIES= print
|
|
|
|
NEED_VERSION= 1.73
|
|
|
|
MAINTAINER= weingart@OpenBSD.org
|
|
|
|
MASTER_SITES= http://www-inf.enst.fr/~demaille/ftp/a2ps/
|
|
|
|
# Note: You can get by without these
|
|
#
|
|
BUILD_DEPENDS= gv:${PORTSDIR}/print/gv \
|
|
dvips:${PORTSDIR}/print/teTeX \
|
|
ps2pdf:${PORTSDIR}/print/ghostscript5 \
|
|
psselect:${PORTSDIR}/print/psutils \
|
|
convert:${PORTSDIR}/graphics/ImageMagick
|
|
RUN_DEPENDS= gv:${PORTSDIR}/print/gv \
|
|
dvips:${PORTSDIR}/print/teTeX \
|
|
ps2pdf:${PORTSDIR}/print/ghostscript5 \
|
|
psselect:${PORTSDIR}/print/psutils \
|
|
convert:${PORTSDIR}/graphics/ImageMagick
|
|
|
|
IS_INTERACTIVE= yes
|
|
MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter or A4
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
|
PAPERSIZE?=
|
|
STRIP=
|
|
CONFIGURE_ARGS= --with-medium=$(PAPERSIZE) \
|
|
--enable-static \
|
|
--sysconfdir=/etc \
|
|
${CONFIGURE_SHARED}
|
|
|
|
Letter::
|
|
$(MAKE) PAPERSIZE=Letter
|
|
|
|
letter::
|
|
$(MAKE) PAPERSIZE=Letter
|
|
|
|
Letterdj::
|
|
$(MAKE) PAPERSIZE=Letterdj
|
|
|
|
letterdj::
|
|
$(MAKE) PAPERSIZE=Letterdj
|
|
|
|
A4::
|
|
$(MAKE) PAPERSIZE=A4
|
|
|
|
a4::
|
|
$(MAKE) PAPERSIZE=A4
|
|
|
|
pre-build:
|
|
/usr/bin/touch $(WRKSRC)/doc/*.info
|
|
/usr/bin/touch $(WRKSRC)/doc/*.dvi
|
|
|
|
pre-configure:
|
|
.if empty(PAPERSIZE)
|
|
@echo
|
|
@echo "PAPERSIZE not specified."
|
|
@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."
|
|
@echo
|
|
@echo "Defaulting to PAPERSIZE=Letter."
|
|
@echo Letter > $(WRKDIR)/.media
|
|
.elif $(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
|
|
.else
|
|
echo $(PAPERSIZE) > $(WRKDIR)/.media
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
.if exists($(WRKDIR)/.media)
|
|
PAPERSIZE=
|
|
PAPERSIZE!= cat $(WRKDIR)/.media
|
|
.endif
|