openbsd-ports/print/gutenprint/Makefile
ajacoutot 4e9571bd4f Enable simplified-cups-ppds.
Tweak DESCR.
Reload cups with cups-genppdupdate.
2022-07-12 06:47:07 +00:00

70 lines
1.5 KiB
Makefile

COMMENT= suite of printer drivers for UNIX
V= 5.3.4
DISTNAME= gutenprint-${V}
REVISION= 2
MAJOR_V= ${V:C/^([0-9]+\.[0-9]+).*/\1/}
SUBST_VARS= MAJOR_V
CATEGORIES= print
EXTRACT_SUFX= .tar.xz
SHARED_LIBS += gutenprint 2.1 # 9.0
HOMEPAGE= http://gimp-print.sourceforge.net/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE= Yes
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
WANTLIB += avahi-client avahi-common c crypto cups curses dbus-1
WANTLIB += execinfo iconv intl m pthread readline ssl usb-1.0
WANTLIB += z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gimp-print/}
BUILD_DEPENDS= print/foomatic-db-engine
LIB_DEPENDS= devel/libusb1 \
print/cups,-libs
# foomatic-rip(1), foomatic-db(-engine)
RUN_DEPENDS += print/cups-filters
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-simplified-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
DEBUG_PACKAGES= ${BUILD_PACKAGES}
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/gutenprintui2/plist.c
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc
mv ${PREFIX}/share/gutenprint/doc \
${PREFIX}/share/doc/gutenprint
.include <bsd.port.mk>