freebsd-ports/print/foo2zjs/Makefile
Tijl Coosemans 77760fcb63 Make print/ghostscript9-agpl-base the default Ghostscript port. Upstream
changed the license to the AGPL 3 in version 9.07 so print/ghostscript9-base
is stuck at 9.06 which is almost 4 years old now.

Fix the logic in Uses/ghostscript.mk so "agpl" is treated as a real version
on its own instead of as a variant of other versions.

Fix print/ghostscript9-agpl-base to install eps2write.

Update math/asymptote to 2.37 to support newer Ghostscript.

PR:		208159
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2016-03-24 15:47:50 +00:00

51 lines
1.4 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
PORTNAME= foo2zjs
PORTVERSION= 20150511
PORTREVISION= 3
CATEGORIES= print
MASTER_SITES= GOOGLE_CODE \
LOCAL/bsam/${PORTNAME} \
ftp://ftp.wart.ru/pub/FreeBSD/ports/distfiles/
MAINTAINER= ports@FreeBSD.org
COMMENT= Driver for printers that use the ZjStream wire protocol
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups
RUN_DEPENDS= ${LOCALBASE}/share/foomatic/db/oldprinterids:${PORTSDIR}/print/foomatic-db \
foomatic-rip:${PORTSDIR}/print/foomatic-filters \
gsed:${PORTSDIR}/textproc/gsed
PROJECTHOST= bsdistfiles
USES= ghostscript gmake shebangfix
SHEBANG_FILES= msexpand printer-profile.sh
SUB_FILES= pkg-message ${DEVDCONF_FILE}
EXTRAFILES= msexpand getweb
DEVDCONF_FILE= ${PORTNAME}.conf
MAKE_JOBS_UNSAFE= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|^CFLAGS|CFLAGS?|g' -e 's|^PREFIX|PREFIX?|g' ${WRKSRC}/icc2ps/Makefile
post-install:
cd ${WRKSRC} && \
${INSTALL_SCRIPT} ${EXTRAFILES} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}/etc/devd
cd ${WRKDIR} && \
${INSTALL_SCRIPT} ${DEVDCONF_FILE} ${STAGEDIR}${PREFIX}/etc/devd
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/foo2zjs-icc2ps
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in ChangeLog INSTALL README manual.pdf
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>