openbsd-ports/print/a2ps/Makefile

84 lines
2.0 KiB
Makefile
Raw Normal View History

2010-11-20 04:48:38 -05:00
# $OpenBSD: Makefile,v 1.47 2010/11/20 09:48:38 espie Exp $
COMMENT= format files for printing on PostScript printers
2000-04-11 02:09:57 -04:00
DISTNAME= a2ps-4.14
REVISION= 3
CATEGORIES= print
2005-12-23 15:17:41 -05:00
SHARED_LIBS= a2ps 2.0
MODGNU_SHARED_LIBS=a2ps ''
HOMEPAGE= http://www.gnu.org/software/a2ps/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv3 or later, includes AFM files from Adobe with still unclear
# terms (see ${WRKSRC}/afm/MustRead.html).
PERMIT_PACKAGE_CDROM= without charge
PERMIT_DISTFILES_CDROM= without charge
2000-03-05 13:30:21 -05:00
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_FTP= Yes
2004-12-25 15:58:34 -05:00
WANTLIB= c m
2000-02-12 03:02:07 -05:00
MASTER_SITES= ${MASTER_SITE_GNU:=a2ps/}
2004-08-10 05:26:13 -04:00
MODULES= devel/gettext
USE_LIBTOOL= Yes
2010-11-20 04:48:38 -05:00
USE_GROFF = Yes
CONFIGURE_STYLE= gnu
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/auxdir
2010-11-20 04:48:38 -05:00
BUILD_DEPENDS= print/psutils \
devel/gperf
FLAVORS= a4 a4dj letter letterdj
FLAVOR?= letter
2000-04-22 08:12:07 -04:00
.if defined(FLAVOR)
.if ${FLAVOR:L} == "a4"
2000-04-22 08:12:07 -04:00
PAPERSIZE= A4
2010-11-20 04:48:38 -05:00
RUN_DEPENDS+= psutils-*-a4:print/psutils,a4
.elif ${FLAVOR:L} == "a4dj"
PAPERSIZE= A4dj
2010-11-20 04:48:38 -05:00
RUN_DEPENDS+= psutils-*-a4:print/psutils,a4
.elif ${FLAVOR:L} == "letterdj"
2000-04-22 08:12:07 -04:00
PAPERSIZE= Letterdj
2010-11-20 04:48:38 -05:00
RUN_DEPENDS+= psutils-*-letter:print/psutils,letter
.elif ${FLAVOR:L} == "letter"
2000-04-22 08:12:07 -04:00
PAPERSIZE= Letter
2010-11-20 04:48:38 -05:00
RUN_DEPENDS+= psutils-*-letter:print/psutils,letter
.else
2010-11-20 04:48:38 -05:00
RUN_DEPENDS+= print/psutils
2000-04-22 08:12:07 -04:00
.endif
.endif
CONFIGURE_ARGS= --with-medium=${PAPERSIZE} \
${CONFIGURE_SHARED}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
ac_cv_prog_EMACS=no \
ac_cv_lib_paper_systempapername=no \
lispdir=${PREFIX}/share/a2ps/emacs
.for p in bzip2 gv ghostview dvips pdf2ps acroread tex latex ps2pdf \
bzip distill netscape html2ps
CONFIGURE_ENV+= ac_cv_prog_COM_$p=no
.endfor
pre-configure:
${SUBST_CMD} ${WRKSRC}/configure \
${WRKSRC}/etc/a2ps_cfg.in
pre-build:
/usr/bin/touch $(WRKSRC)/doc/*.info
/usr/bin/touch $(WRKSRC)/doc/*.dvi
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/a2ps/etc
${INSTALL_DATA} ${WRKSRC}/etc/a2ps.cfg ${PREFIX}/share/a2ps/etc
${INSTALL_DATA} ${WRKSRC}/etc/a2ps-site.cfg ${PREFIX}/share/a2ps/etc
.include <bsd.port.mk>