mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
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
113 lines
3.1 KiB
Makefile
113 lines
3.1 KiB
Makefile
PORTNAME= cups
|
|
PORTVERSION= 2.4.2
|
|
DISTVERSIONPREFIX=v
|
|
CATEGORIES= print
|
|
|
|
MAINTAINER= tijl@FreeBSD.org
|
|
COMMENT= Common UNIX Printing System
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= compiler:c++11-lang cpe gmake iconv localbase pkgconfig
|
|
CPE_VENDOR= linuxfoundation
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= OpenPrinting
|
|
|
|
CONFLICTS= LPRng
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-relro \
|
|
--with-cups-user=${USERS} \
|
|
--with-cups-group=${GROUPS} \
|
|
--with-system-groups=wheel \
|
|
--with-dbusdir="${PREFIX}/etc/dbus-1" \
|
|
--with-icondir="${PREFIX}/share/icons" \
|
|
--with-menudir="${DESKTOPDIR}" \
|
|
--with-printcap="${PREFIX}/etc/printcap" \
|
|
--with-rcdir=no \
|
|
--with-optim=" " \
|
|
--with-pam-module="unix" \
|
|
--without-ondemand
|
|
USE_LDCONFIG= yes
|
|
USE_RC_SUBR= cupsd
|
|
|
|
GROUPS= cups
|
|
USERS= cups
|
|
|
|
OPTIONS_DEFINE= AVAHI DBUS DOCS GNUTLS IPPTOOL LIBPAPER NLS X11
|
|
OPTIONS_DEFAULT= AVAHI DBUS GNUTLS LIBPAPER
|
|
OPTIONS_SUB= yes
|
|
|
|
AVAHI_LIB_DEPENDS= libavahi-client.so:net/avahi-app
|
|
AVAHI_CONFIGURE_WITH= dnssd=avahi
|
|
AVAHI_SUB_LIST= AVAHI_DAEMON=avahi_daemon
|
|
AVAHI_SUB_LIST_OFF= AVAHI_DAEMON=
|
|
|
|
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus
|
|
DBUS_CONFIGURE_ENABLE= dbus
|
|
DBUS_SUB_LIST= DBUS_DAEMON=dbus
|
|
DBUS_SUB_LIST_OFF= DBUS_DAEMON=
|
|
|
|
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
|
|
GNUTLS_CONFIGURE_WITH= tls=gnutls
|
|
|
|
IPPTOOL_DESC= Internet Printing Protocol testing tool
|
|
|
|
LIBPAPER_LIB_DEPENDS= libpaper.so:print/libpaper
|
|
LIBPAPER_CONFIGURE_ENABLE=libpaper
|
|
|
|
X11_DESC= Install desktop menu item
|
|
X11_BUILD_DEPENDS= xdg-open:devel/xdg-utils
|
|
X11_RUN_DEPENDS= xdg-open:devel/xdg-utils
|
|
|
|
.if defined(CUPS_OVERWRITE_BASE)
|
|
PLIST_SUB+= OVERWRITE=""
|
|
.else
|
|
PLIST_SUB+= OVERWRITE="@comment "
|
|
.endif
|
|
|
|
.if exists(/usr/lib/libusb.so)
|
|
PLIST_SUB+= USB=""
|
|
.else
|
|
PLIST_SUB+= USB="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_DEBUG)
|
|
CONFIGURE_ARGS+=--enable-debug --enable-debug-printfs
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if empty(ICONV_LIB)
|
|
CONFIGURE_ARGS+=ac_cv_search_libiconv_open=no
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/SILENT/d' ${WRKSRC}/Makedefs.in
|
|
@${REINPLACE_CMD} 's/usblp/ulpt/g' ${WRKSRC}/backend/usb-libusb.c
|
|
@${REINPLACE_CMD} -e 's|/usr/local/etc/pam.d|${LOCALBASE}/etc/pam.d|' \
|
|
${WRKSRC}/configure
|
|
@${REINPLACE_CMD} 's|/etc/cups|${LOCALBASE}/etc/cups|g' \
|
|
${WRKSRC}/man/*.[1-9]
|
|
@${REINPLACE_CMD} -e 's|\.default|.sample|'\
|
|
${WRKSRC}/cgi-bin/admin.c\
|
|
${WRKSRC}/conf/Makefile
|
|
|
|
post-patch-DOCS-off:
|
|
# Link to online documentation.
|
|
@${FIND} ${WRKSRC}/doc ${WRKSRC}/templates -type f -exec ${SED} -i '' \
|
|
-e 's|[Hh][Rr][Ee][Ff]="/*help/{[^"]*"|href="https://openprinting.github.io/cups/#DOCUMENTATION|g' \
|
|
-e 's|[Hh][Rr][Ee][Ff]="/*help/"|href="https://openprinting.github.io/cups/#DOCUMENTATION|g' \
|
|
-e '/have_gssapi/s|[Hh][Rr][Ee][Ff]="/*help/|href="https\\://openprinting.github.io/cups/doc/|g' \
|
|
-e 's|[Hh][Rr][Ee][Ff]="/*help/|href="https://openprinting.github.io/cups/doc/|g' {} +
|
|
|
|
post-install:
|
|
${LN} -sf lpr ${STAGEDIR}${PREFIX}/bin/lpr-cups
|
|
${INSTALL_DATA} ${FILESDIR}/cups.conf.sample \
|
|
${STAGEDIR}${PREFIX}/etc/devd
|
|
${INSTALL_DATA} ${FILESDIR}/cups ${STAGEDIR}${PREFIX}/etc/pam.d
|
|
|
|
.include <bsd.port.post.mk>
|