openbsd-ports/print/scribus/Makefile
2006-09-18 11:59:59 +00:00

68 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.8 2006/09/18 11:59:59 espie Exp $
SHARED_ONLY= Yes
COMMENT= "DTP program"
DISTNAME= scribus-1.2.2.1
PKGNAME= ${DISTNAME}p3
CATEGORIES= print
HOMEPAGE= http://www.scribus.org.uk/
# GPL
PERMIT_PACKAGE_CDROM?= Yes
PERMIT_PACKAGE_FTP?= Yes
PERMIT_DISTFILES_CDROM?=Yes
PERMIT_DISTFILES_FTP?= Yes
WANTLIB= ICE SM X11 Xext c freetype gcrypt gnutls gpg-error \
m pthread stdc++ z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scribus/}
EXTRACT_SUFX= .tar.bz2
MODULES= x11/qt3 devel/gettext
MODQT_MT= Yes
LIB_DEPENDS= jpeg::graphics/jpeg \
lcms::graphics/lcms \
art_lgpl_2::graphics/libart \
png::graphics/png \
tiff::graphics/tiff \
python2.4:python-2.4.*:lang/python/2.4 \
cups::print/cups \
xml2::textproc/libxml
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE=gnu
#AUTOCONF_VERSION= 2.59
CONFIGURE_ARGS= ${MODQT_CONFIGURE_ARGS} \
--with-extra-libs=${LOCALBASE}/lib \
--with-extra-includes=${LOCALBASE}/include/libpng:${LOCALBASE}/include
CONFIGURE_ENV+= UIC_PATH=${MODQT_UIC} \
CPPFLAGS='-I${MODQT_INCDIR} -I${LOCALBASE}/include/libpng \
-I${LOCALBASE}/include' LDFLAGS='-L${MODQT_LIBDIR} \
-L${LOCALBASE}/lib'
FLAVORS= debug
FLAVOR?=
.if ${FLAVOR:L:Mdebug}
CONFIGURE_ARGS+=--enable-debug=Yes
CFLAGS+=-g
CXXFLAGS+=-g
.endif
PLUGINS=about charselect csvim fontpreview htmlim importps \
newfromtemplateplugin odtimplugin oodrawimp pdf postscript preferences \
preview saveastemplateplugin scribusexportpixmap scribusshortwords \
scriptplugin svgexplugin svgimplugin sxwimplugin textfilterplugin txtim
.for _n in ${PLUGINS}
MAKE_FLAGS+= lib${_n}_la_LDFLAGS='-module -avoid-version'
.endfor
.include <bsd.port.mk>