2000-03-19 11:43:40 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2000/03/19 16:43:41 espie Exp $
|
1998-01-31 16:54:44 -05:00
|
|
|
#
|
|
|
|
|
1999-11-27 08:33:50 -05:00
|
|
|
DISTNAME= a2ps-4.12g
|
1998-09-29 23:27:07 -04:00
|
|
|
PKGNAME= a2ps
|
1998-01-31 16:54:44 -05:00
|
|
|
CATEGORIES= print
|
2000-03-05 13:30:21 -05:00
|
|
|
NEED_VERSION= 1.223
|
1998-01-31 16:54:44 -05:00
|
|
|
|
|
|
|
MAINTAINER= weingart@OpenBSD.org
|
|
|
|
|
2000-02-12 03:02:07 -05:00
|
|
|
LICENSE_TYPE= GPL
|
2000-03-05 13:30:21 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2000-02-12 03:02:07 -05:00
|
|
|
|
1999-11-27 08:33:50 -05:00
|
|
|
MASTER_SITES= ftp://ftp.enst.fr/pub/unix/a2ps/
|
1999-02-20 23:26:09 -05:00
|
|
|
|
1998-08-10 18:01:56 -04:00
|
|
|
# Note: You can get by without these
|
|
|
|
#
|
2000-03-05 13:30:21 -05:00
|
|
|
BUILD_DEPENDS= gv:print/gv \
|
|
|
|
dvips:print/teTeX/base \
|
2000-03-19 11:43:40 -05:00
|
|
|
ps2pdf:print/ghostscript/gnu \
|
2000-03-05 13:30:21 -05:00
|
|
|
psselect:print/psutils \
|
|
|
|
convert:graphics/ImageMagick
|
|
|
|
RUN_DEPENDS= gv:print/gv \
|
|
|
|
dvips:print/teTeX/base \
|
2000-03-19 11:43:40 -05:00
|
|
|
ps2pdf:print/ghostscript/gnu \
|
2000-03-05 13:30:21 -05:00
|
|
|
psselect:print/psutils \
|
|
|
|
convert:graphics/ImageMagick
|
|
|
|
|
|
|
|
IS_INTERACTIVE= Yes
|
1999-10-29 05:40:15 -04:00
|
|
|
NO_PACKAGE= interactive port
|
1998-01-31 16:54:44 -05:00
|
|
|
MANUAL_PACKAGE_BUILD= PAPERSIZE has to be set to Letter or A4
|
2000-03-05 13:30:21 -05:00
|
|
|
GNU_CONFIGURE= Yes
|
1998-08-10 18:01:56 -04:00
|
|
|
|
1998-01-31 16:54:44 -05:00
|
|
|
|
|
|
|
PAPERSIZE?=
|
|
|
|
STRIP=
|
1998-08-10 18:01:56 -04:00
|
|
|
CONFIGURE_ARGS= --with-medium=$(PAPERSIZE) \
|
|
|
|
--enable-static \
|
1999-03-01 23:41:00 -05:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
${CONFIGURE_SHARED}
|
1998-01-31 16:54:44 -05:00
|
|
|
|
|
|
|
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."
|
1998-04-27 22:17:11 -04:00
|
|
|
@echo
|
|
|
|
@echo "Defaulting to PAPERSIZE=Letter."
|
|
|
|
@echo Letter > $(WRKDIR)/.media
|
1998-01-31 16:54:44 -05:00
|
|
|
.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
|
1998-06-18 18:55:45 -04:00
|
|
|
.else
|
1998-01-31 16:54:44 -05:00
|
|
|
echo $(PAPERSIZE) > $(WRKDIR)/.media
|
1998-06-18 18:55:45 -04:00
|
|
|
.endif
|
1998-01-31 16:54:44 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
|
|
|
|
.if exists($(WRKDIR)/.media)
|
|
|
|
PAPERSIZE=
|
|
|
|
PAPERSIZE!= cat $(WRKDIR)/.media
|
|
|
|
.endif
|