51879c91f8
A big Thank You to the original contributors of these ports: * Akinori MUSHA aka knu <knu@idaemons.org> * Alan Eldridge <alane@geeksrus.net> * Alex Dupre <ale@FreeBSD.org> * Alex Dupre <sysadmin@alexdupre.com> * Alexander Vereeken <Alexander88207@protonmail.com> * Alexey Dokuchaev <danfe@FreeBSD.org> * Alonso Cardenas Marquez <acm@FreeBSD.org> * Andreas Klemm <andreas@FreeBSD.org> * Andreas Klemm <andreas@klemm.gtn.com> * Andrew Pantyukhin <infofarmer@FreeBSD.org> * Anish Mistry <amistry@am-productions.biz> * Anton Berezin <tobez@tobez.org> * Bruce M Simpson <bms@FreeBSD.org> * Bruce M. Simpson <bms@FreeBSD.org> * CHOI Junho <cjh@FreeBSD.org> * Chuck Robey <chuckr@FreeBSD.org> * D'Arcy Cain <darcy@druid.net> * David O'Brien (obrien@NUXI.com) * David O'Brien <obrien@FreeBSD.org> * David O'Brien <obrien@cs.ucdavis.edu> * Dima Dorfman <dima@unixfreak.org> * Dmitry Kazarov <d.y.kazarov@mail.ru> * Dmitry Sivachenko <dima@Chg.RU> * Emanuel Haupt <ehaupt@FreeBSD.org> * Fabiano Sidler <fabianosidler@swissonline.ch> * Fernan Aguero <fernan.aguero@gmail.com> * Fernan Aguero <fernan@iib.unsam.edu.ar> * Giuseppe Pilichi aka Jacula Modyun <jacula@gmail.com> * Golyashov Sergey <svvord@soft-wizard.ru> * Gvozdikov Veniamin <g.veniamin@googlemail.com> * Hideaki Ohmon <ohmon@tom.sfc.keio.ac.jp> * Igor Pokrovsky <tiamat@comset.net> * James Bailie <jimmy@mammothcheese.ca> * Jean-Marc Zucconi <jmz@FreeBSD.org> and David O'Brien <obrien@FreeBSD.org> * Jean-Sebastien Roy <js@jeannot.org> * Joe Marcus Clarke <marcus@FreeBSD.org> * Joel Sutton <jsutton@bbcon.com.au> * Joerg Wunsch <joerg@FreeBSD.org> * Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> * Jose Jachuf <jjachuf@gmail.com> * Joseph Koshy <jkoshy@FreeBSD.org> * Juergen Lock <nox@jelal.kn-bremen.de> * Jui-Nan Lin <jnlin@freebsd.cs.nctu.edu.tw> * KANOU Hiroki <kanou@khdd.net> * KATO Tsuguru <tkato@prontomail.com> * Kapil Chowksey * Kentaro Inagaki <JBD01226@niftyserve.ne.jp> * Kimura Fuyuki <fuyuki@hadaly.org> * Klemm <andreas@klemm.gtn.com> * Koop Mast <kwm@FreeBSD.org> * Kozlov Sergey <kozlov.sergey.404@gmail.com> * Lars Koeller * Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> * Mark Pulford <mark@kyne.com.au> * Mark Reidel <ports@mark.reidel.info> * Martin Dieringer <martin.dieringer@gmx.de> * Martin Kammerhofer * Martin Klaffenboeck <martin.klaffenboeck@gmx.at> * Martin Ranne <gasp@ridcully.dnsalias.org> * Matthew Hunt <mph@pobox.com> * Maxim Loginov <Zeliboba@mail.ru> * Michael Johnson <ahze@FreeBSD.org> * Michael Moll <kvedulv at kvedulv.de> * Michael Nottebrock <lofi@FreeBSD.org> * Mike Meyer <mwm@mired.org> * Mikhail Teterin * Mita Yoshio <mita@FreeBSD.org> * Nicola Vitale <nivit@email.it> * Oliver Braun <obraun@informatik.unibw-muenchen.de> * Oliver Breuninger <ob@seicom.NET> * Olivier Cochard-Labbe <olivier@FreeBSD.org> * Patrick Dung (patrick_dkt@yahoo.com.hk) * Patrick Powell <papowell@astart.com> * Pedro Giffuni * Philip M. Gollucci <pgpollucci@p6m7g8.com> * Piotr Kubaj <pkubaj@anongoth.pl> * Po-Chuan Hsieh <sunpoet@FreeBSD.org> * Robert Withrow <witr@rwwa.com> * Romain Tartiere <romain@FreeBSD.org> * Satoshi Asami <asami@FreeBSD.org> * Satoshi TAOKA <taoka@FreeBSD.org> * Satoshi Taoka <taoka@FreeBSD.org> * Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw> * Simon 'corecode' Schubert <corecode@corecode.ath.cx> * Simun Mikecin <numisemis@yahoo.com> * Stefan Esser <se@FreeBSD.org> * Stefan Hagen <ports@textmail.me> * Stephen Fisher * Steve Wills <swills@FreeBSD.org> * Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> * TAKATSU Tomonari <tota@FreeBSD.org> * Thierry Thomas <thierry@pompo.net> * Thomas Gellekum <tg@FreeBSD.org> * Tim McCormick <tim@pcbsd.org> * Tomokatsu SAITO <saito@a2z.co.jp> * Veniamin Gvozdikov <vg@FreeBSD.org> * Wen Heping <wenheping@gmail.com> * Yuichiro AIZAWA <yaizawa@mdbl.sfc.keio.ac.jp> * amistry@am-productions.biz * andrew@scoop.co.nz * arved * brett@peloton.physics.montana.edu * chuckr@FreeBSD.org * cjm2 * dbader@eece.unm.edu * dgilbert@velocet.ca * e-masson@kisoft-services.com * eserte@cs.tu-berlin.de * gahr * giffunip * hrs * ijliao * jmz * joerg * johans * jseger@FreeBSD.org * kline * ljo * lofi@FreeBSD.org * martin.dieringer@gmx.de * mwest@uct.ac.za * oly@world.std.com * patrick, trevor * smace@FreeBSD.org * spcoltri@unm.edu * tg@FreeBSD.org * tobez * wenheping@gmail.com With hat: portmgr
72 lines
2.1 KiB
Makefile
72 lines
2.1 KiB
Makefile
PORTNAME= gutenprint
|
|
PORTVERSION= 5.3.3
|
|
PORTREVISION?= 0
|
|
CATEGORIES= print
|
|
MASTER_SITES= SF/gimp-print/gutenprint-5.3/${PORTVERSION}
|
|
|
|
MAINTAINER= cmt@FreeBSD.org
|
|
COMMENT?= Gutenprint Printer Drivers
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-static --enable-cups-ppds \
|
|
--enable-cups-1_2-enhancements \
|
|
--enable-simplified-cups-ppds \
|
|
--disable-globalized-cups-ppds \
|
|
--enable-cups-level3-ppds \
|
|
--disable-translated-cups-ppds
|
|
INSTALL_TARGET= install-strip
|
|
USES= compiler:c11 cpe gettext gmake libtool pathfix perl5 pkgconfig \
|
|
tar:xz
|
|
CPE_VENDOR= ${PORTNAME}_project
|
|
|
|
OPTIONS_DEFINE= DOCS NLS
|
|
OPTIONS_SUB= yes
|
|
DOCS_CONFIGURE_WITH= doc
|
|
NLS_CONFIGURE_ENABLE= nls
|
|
|
|
.if !defined(GUT_SLAVE)
|
|
LIB_DEPENDS+= libcupsimage.so:print/cups
|
|
RUN_DEPENDS+= ${LOCALBASE}/libexec/cups/filter/gstoraster:print/cups-filters
|
|
CONFIGURE_ARGS+=--disable-libgutenprintui2 --without-gimp2 \
|
|
--with-cups=${PREFIX} \
|
|
--with-cups-config=${PREFIX}/bin/cups-config
|
|
USES+= iconv
|
|
USE_LDCONFIG= yes
|
|
.else
|
|
LIB_DEPENDS+= libgutenprint.so:print/gutenprint
|
|
MAKE_ARGS+= GUTENPRINT_LIBS='`$$(PKG_CONFIG) --libs gutenprint`'
|
|
.if ${GUT_SLAVE} == "gimp"
|
|
USES+= gnome
|
|
USE_GNOME+= cairo gdkpixbuf2
|
|
LIB_DEPENDS+= libbabl-0.1.so:x11/babl \
|
|
libfontconfig.so:x11-fonts/fontconfig \
|
|
libfreetype.so:print/freetype2 \
|
|
libgegl-0.4.so:graphics/gegl \
|
|
libgimp-2.0.so:graphics/gimp-app \
|
|
libjson-glib-1.0.so:devel/json-glib
|
|
CONFIGURE_ARGS+=--enable-libgutenprintui2 --with-gimp2
|
|
BUILD_WRKSRC= ${WRKSRC}/src/gimp2
|
|
INSTALL_WRKSRC= ${WRKSRC}/src/gimp2
|
|
USE_GNOME+= gtk20
|
|
.endif
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/lpstat|${LOCALBASE}/bin/lpstat|' \
|
|
${WRKSRC}/src/gutenprintui2/plist.c
|
|
@${REINPLACE_CMD} -e '/DEPENDENCIES/s/$$(GUTENPRINT_LIBS)//' \
|
|
${WRKSRC}/src/gimp2/Makefile.in
|
|
|
|
post-install:
|
|
.if defined(GUT_SLAVE) && ${GUT_SLAVE} == "gimp"
|
|
@(cd ${WRKSRC}/src/gutenprintui2 && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
|
|
${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
|
|
.else
|
|
@(test -d ${STAGEDIR}/${DATADIR}/doc/reference-html && ${RMDIR} ${STAGEDIR}/${DATADIR}/doc/reference-html || :)
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|