2016-07-08 16:53:23 +00:00

68 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.45 2016/07/08 16:53:23 sthen Exp $
COMMENT= high quality print drivers for foomatic and CUPS
V= 5.2.11
REVISION= 0
DISTNAME= gutenprint-${V}
MAJOR_V= ${V:C/^([0-9]+\.[0-9]+).*/\1/}
SUBST_VARS= MAJOR_V
CATEGORIES= print
EXTRACT_SUFX= .tar.bz2
SHARED_LIBS += gutenprint 2.0 # 6.0
HOMEPAGE= http://gimp-print.sourceforge.net/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += avahi-client avahi-common c cups cupsimage dbus-1
WANTLIB += ijs m ncurses pthread readline usb-1.0 z
WANTLIB += ffi gmp gnutls hogweed nettle p11-kit tasn1 idn
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gimp-print/}
MODULES= devel/gettext
BUILD_DEPENDS= print/foomatic-db-engine
LIB_DEPENDS= devel/libusb1 \
print/cups,-libs \
print/ijs
# foomatic-rip(1), foomatic-db(-engine)
RUN_DEPENDS += print/cups-filters
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-static \
--enable-cups-ppds-at-top-level \
--disable-translated-cups-ppds \
--disable-libgutenprintui2 \
--with-cups=${LOCALBASE} \
--without-gimp2
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.for i in DVIPS DB2PDF DVIPDF DB2PS DB2HTML DOXYGEN TEXI2HTML CONVERT
CONFIGURE_ENV+= ac_cv_path_$i=""
.endfor
MAKE_FLAGS= INTLLIBS='$$(LTLIBINTL)'
FAKE_FLAGS= cups_conf_serverroot=${PREFIX}/share/examples/gutenprint
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
mv ${PREFIX}/share/gutenprint/doc \
${PREFIX}/share/doc/gutenprint
rm ${PREFIX}/share/foomatic/kitload.log
.include <bsd.port.mk>