2013-09-21 00:43:59 +02:00
|
|
|
# Created by: Chuck Robey <chuckr@FreeBSD.org>
|
1999-08-31 03:53:22 +02:00
|
|
|
# $FreeBSD$
|
1995-04-15 06:34:11 +02:00
|
|
|
|
2000-04-15 13:02:14 +02:00
|
|
|
PORTNAME= a2ps
|
2003-06-20 19:30:24 +02:00
|
|
|
PORTVERSION= 4.13b
|
2019-05-30 09:50:10 +02:00
|
|
|
PORTREVISION= 11
|
1996-11-17 09:45:20 +01:00
|
|
|
CATEGORIES= print
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= GNU LOCAL/hrs/a2ps/:i18n
|
1995-04-15 06:34:11 +02:00
|
|
|
|
2003-06-10 20:18:38 +02:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2012-07-28 17:57:55 +02:00
|
|
|
COMMENT= Formats an ASCII file for printing on a postscript printer
|
1994-11-06 03:13:39 +01:00
|
|
|
|
2010-06-04 15:49:15 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libpaper.so:print/libpaper
|
2013-04-27 18:00:26 +02:00
|
|
|
|
2013-09-21 13:06:03 +02:00
|
|
|
PORTSCOUT= skipv:4.14
|
|
|
|
|
2015-03-08 11:03:33 +01:00
|
|
|
USES= perl5 cpe
|
2011-05-12 14:16:10 +02:00
|
|
|
USE_CSTD= gnu89
|
1997-08-19 05:44:07 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2008-03-23 10:02:34 +01:00
|
|
|
USE_LDCONFIG= yes
|
2004-06-11 04:57:14 +02:00
|
|
|
INFO= a2ps ogonkify regex
|
2003-06-20 19:30:24 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-4.13
|
2006-12-29 19:17:54 +01:00
|
|
|
I18N_PACKAGE= i18n-fonts-0.1
|
2015-03-08 11:03:33 +01:00
|
|
|
CPE_VENDOR= gnu
|
1996-05-27 10:48:10 +02:00
|
|
|
|
2013-04-27 18:00:26 +02:00
|
|
|
CONFIGURE_ARGS= --with-medium=libpaper --sharedstatedir=${PREFIX}/share \
|
|
|
|
--sysconfdir=${PREFIX}/etc --datadir=${PREFIX}/share \
|
|
|
|
--localstatedir=${PREFIX}/share
|
2014-06-11 16:49:59 +02:00
|
|
|
LIBS+= -L${LOCALBASE}/lib
|
1998-02-26 03:16:32 +01:00
|
|
|
|
2013-04-27 18:00:26 +02:00
|
|
|
PAPERSIZE?=
|
2014-05-05 11:45:36 +02:00
|
|
|
.if ${PAPERSIZE:tl} == a4
|
2016-04-01 16:16:16 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/etc/papersize:print/papersize-default-a4
|
2004-02-25 11:53:08 +01:00
|
|
|
.endif
|
|
|
|
|
2012-09-29 21:18:19 +02:00
|
|
|
OPTIONS_DEFINE=NLS I18N EMACS
|
|
|
|
NO_OPTIONS_SORT=yes
|
2013-12-17 09:01:59 +01:00
|
|
|
OPTIONS_SUB= yes
|
2012-09-29 21:18:19 +02:00
|
|
|
EMACS_DESC=Enable Emacs support
|
|
|
|
I18N_DESC=Enable I18N support
|
|
|
|
|
2013-12-17 09:01:59 +01:00
|
|
|
NLS_USES= gettext
|
|
|
|
NLS_CONFIGURE_ENABLE= nls
|
2018-02-01 19:03:09 +01:00
|
|
|
EMACS_USES= emacs:build
|
2013-12-17 09:01:59 +01:00
|
|
|
EMACS_CONFIGURE_ON= --with-lispdir=${LOCALBASE}/${EMACS_SITE_LISPDIR}
|
2012-09-29 21:18:19 +02:00
|
|
|
|
2013-12-17 09:01:59 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2012-09-29 21:18:19 +02:00
|
|
|
|
2013-12-17 09:01:59 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MEMACS}
|
2012-09-29 21:18:19 +02:00
|
|
|
CONFIGURE_ENV+= EMACS=no
|
2003-06-11 23:21:29 +02:00
|
|
|
.endif
|
|
|
|
|
2013-12-17 09:01:59 +01:00
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|^DESTDIR|#DESTDIR|' \
|
|
|
|
`${FIND} ${WRKSRC} -name "Makefile.in"`
|
|
|
|
|
2012-09-29 21:18:19 +02:00
|
|
|
.if ${PORT_OPTIONS:MI18N}
|
2013-12-17 09:01:59 +01:00
|
|
|
#DISTFILES+= ${I18N_PACKAGE}${EXTRACT_SUFX}:i18n
|
2013-02-25 18:57:53 +01:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${I18N_PACKAGE}${EXTRACT_SUFX}:i18n
|
2006-12-29 19:17:54 +01:00
|
|
|
|
|
|
|
pre-configure:
|
2013-04-27 18:00:26 +02:00
|
|
|
cd ${WRKDIR}/${I18N_PACKAGE}/afm && \
|
|
|
|
${ECHO_CMD} *.afm > afms.lst && \
|
|
|
|
${MV} *.afm ${WRKSRC}/afm
|
|
|
|
cd ${WRKDIR}/${I18N_PACKAGE}/fonts && \
|
|
|
|
${MV} *.pfb ${WRKSRC}/fonts
|
2006-12-29 19:17:54 +01:00
|
|
|
|
|
|
|
post-configure:
|
2013-04-27 18:00:26 +02:00
|
|
|
@cd ${WRKSRC}/fonts && { ${ECHO_CMD} ''; \
|
|
|
|
${ECHO_CMD} "pfb_fonts =" *.pfb; } >> Makefile && \
|
2006-12-29 19:17:54 +01:00
|
|
|
${REINPLACE_CMD} 's,^\(fonts_DATA = .*\),\1 $$(pfb_fonts),' Makefile
|
2014-03-30 07:30:59 +02:00
|
|
|
@cd ${WRKSRC}/afm && { ${ECHO_CMD} ''; \
|
|
|
|
${ECHO_CMD} "i18n_afms =" `cat ${WRKDIR}/${I18N_PACKAGE}/afm/afms.lst`; } >> Makefile && \
|
2006-12-29 19:17:54 +01:00
|
|
|
${REINPLACE_CMD} 's,^\(all_afms = .*\),\1 $$(i18n_afms),' Makefile
|
|
|
|
.endif
|
|
|
|
|
1998-02-26 03:16:32 +01:00
|
|
|
post-install:
|
2013-04-27 18:00:26 +02:00
|
|
|
cd ${WRKSRC}/doc && \
|
2013-12-17 09:01:59 +01:00
|
|
|
${SETENV} ${MAKE_ENV} ${MAKE} ${.MAKEFLAGS} ${MAKE_ARGS} ${INSTALL_TARGET}
|
2016-10-21 14:51:40 +02:00
|
|
|
${RM} ${STAGEDIR}${PREFIX}/lib/liba2ps.la
|
1996-05-27 10:48:10 +02:00
|
|
|
|
1994-11-06 03:13:39 +01:00
|
|
|
.include <bsd.port.mk>
|