openbsd-ports/print/gutenprint/Makefile
ajacoutot 20918013ba Rework the way we handle dependencies in the print ports:
* depends on foomatic-filters when a driver installs:
  share/foomatic/db/source/.../*.ppd{,.gz}
* depends on foomatic-db-engine when a driver installs:
  share/foomatic/db/source/.../*.xml

foomatic-db-engine now depends on foomatic-db (which itself depends on
nothing anymore).

This will ensure all the needed packages are installed for complete
foomatic-* use.
Some packages install both pre-created ppd and xml files, so theorically
it wouldn't need to depend on foomatic-db-engine, but we still do it
because we may want to regen the ppd file.

It's the best compromise I could come up with.
2011-04-15 18:40:47 +00:00

85 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.25 2011/04/15 18:40:47 ajacoutot Exp $
COMMENT-main= high quality print drivers
COMMENT-foomatic= Foomatic data for gutenprint drivers
# XXX On major update, update the gutenprint-ijs.X.X substitution in the
# print/foomatic-db port and bump.
V= 5.2.6
DISTNAME= gutenprint-${V}
PKGNAME-main= ${DISTNAME}
PKGNAME-foomatic= foomatic-db-${DISTNAME}
REVISION-foomatic= 0
MAJOR_V= ${V:C/^([0-9]+\.[0-9]+).*/\1/}
SUBST_VARS= MAJOR_V
CATEGORIES= print
EXTRACT_SUFX= .tar.bz2
SHARED_LIBS+= gutenprint 1.0 # .2.3
HOMEPAGE= http://gimp-print.sourceforge.net/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gimp-print/}
MULTI_PACKAGES= -main -foomatic
MODULES= devel/gettext
WANTLIB-main += c m ncurses readline ijs ${MODGETTEXT_WANTLIB}
BUILD_DEPENDS= print/foomatic-db-engine>=4.0.3
LIB_DEPENDS-main= ${MODGETTEXT_LIB_DEPENDS} \
print/ijs
WANTLIB-foomatic += # empty
LIB_DEPENDS-foomatic= # empty
RUN_DEPENDS-foomatic= print/foomatic-db-engine \
print/foomatic-filters \
${BUILD_PKGPATH},-main
PKG_ARCH-foomatic= *
USE_GMAKE= Yes
USE_LIBTOOL= Yes
USE_GROFF = Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--enable-static \
--enable-test \
--enable-testpattern \
--enable-escputil \
--disable-libgutenprintui2 \
--with-foomatic \
--with-foomatic3 \
--with-ghostscript \
--with-cups=no \
--without-gimp2
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
LIBS="-liconv -lintl" \
am_cv_prog_tar_ustar=plaintar
.for i in DVIPS DB2PDF DVIPDF DB2PS DB2HTML DOXYGEN TEXI2HTML CONVERT
CONFIGURE_ENV+= ac_cv_path_$i=""
.endfor
FAKE_FLAGS= docdir=${PREFIX}/share/doc/gutenprint
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/gutenprintui2/plist.c
.include <bsd.port.mk>