2006-02-19 12:32:59 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.36 2006/02/19 17:32:59 alek Exp $
|
2001-05-05 23:19:44 -04:00
|
|
|
|
|
|
|
COMMENT= "format ascii files for printing on PostScript printers"
|
2000-04-11 02:09:57 -04:00
|
|
|
|
2000-06-10 21:13:42 -04:00
|
|
|
DISTNAME= a2ps-4.13b
|
2006-02-19 12:32:59 -05:00
|
|
|
PKGNAME= ${DISTNAME}p3
|
2000-06-10 21:13:42 -04:00
|
|
|
WRKDIST= ${WRKDIR}/a2ps-4.13
|
1998-01-31 16:54:44 -05:00
|
|
|
CATEGORIES= print
|
2005-12-23 15:17:41 -05:00
|
|
|
SHARED_LIBS= a2ps 2.0
|
2005-12-24 00:30:25 -05:00
|
|
|
MODGNU_SHARED_LIBS=a2ps ''
|
1998-01-31 16:54:44 -05:00
|
|
|
|
2000-06-10 21:13:42 -04:00
|
|
|
# License info. There is some questionable Sun and
|
|
|
|
# Adobe Copyrighted things in this source tree. It
|
|
|
|
# looks fine for FTP, but likely not for the CDROM.
|
|
|
|
PERMIT_PACKAGE_CDROM= "No fee redistribution."
|
|
|
|
PERMIT_DISTFILES_CDROM= "No fee redistribution."
|
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
|
|
|
|
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
|
|
|
|
2004-08-10 05:26:13 -04:00
|
|
|
MODULES= devel/gettext
|
2002-12-14 09:09:07 -05:00
|
|
|
|
2005-12-24 04:14:42 -05:00
|
|
|
USE_LIBTOOL= Yes
|
2000-06-10 21:13:42 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2001-09-28 02:02:12 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS= ${WRKSRC} ${WRKSRC}/auxdir
|
1998-08-10 18:01:56 -04:00
|
|
|
|
2006-01-19 09:20:17 -05:00
|
|
|
FLAVORS= a4 a4dj letter letterdj
|
2000-06-10 21:13:42 -04:00
|
|
|
FLAVOR?= letter
|
2000-04-22 08:12:07 -04:00
|
|
|
|
|
|
|
.if defined(FLAVOR)
|
2000-06-10 22:17:22 -04:00
|
|
|
.if ${FLAVOR:L} == "a4"
|
2000-04-22 08:12:07 -04:00
|
|
|
PAPERSIZE= A4
|
2006-01-19 09:20:17 -05:00
|
|
|
.elif ${FLAVOR:L} == "a4dj"
|
|
|
|
PAPERSIZE= A4dj
|
2000-06-10 22:17:22 -04:00
|
|
|
.elif ${FLAVOR:L} == "letterdj"
|
2000-04-22 08:12:07 -04:00
|
|
|
PAPERSIZE= Letterdj
|
2000-06-10 22:17:22 -04:00
|
|
|
.elif ${FLAVOR:L} == "letter"
|
2000-04-22 08:12:07 -04:00
|
|
|
PAPERSIZE= Letter
|
|
|
|
.endif
|
|
|
|
.endif
|
1998-01-31 16:54:44 -05:00
|
|
|
|
2002-12-14 09:09:07 -05:00
|
|
|
CONFIGURE_ARGS= --with-medium=${PAPERSIZE} \
|
|
|
|
${CONFIGURE_SHARED}
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2005-12-24 00:30:25 -05:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
2005-12-24 04:14:42 -05:00
|
|
|
ac_cv_prog_EMACS=no \
|
|
|
|
lispdir=${PREFIX}/share/a2ps/emacs
|
|
|
|
.for p in bzip2 gv ghostview dvips pdf2ps acroread convert tex latex ps2pdf \
|
|
|
|
psselect psnup bzip
|
|
|
|
CONFIGURE_ENV+= ac_cv_prog_COM_$p=no
|
|
|
|
.endfor
|
1998-01-31 16:54:44 -05:00
|
|
|
|
|
|
|
pre-build:
|
|
|
|
/usr/bin/touch $(WRKSRC)/doc/*.info
|
|
|
|
/usr/bin/touch $(WRKSRC)/doc/*.dvi
|
|
|
|
|
2000-06-10 21:13:42 -04:00
|
|
|
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
|
1998-01-31 16:54:44 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|