openbsd-ports/print/scribus/Makefile
jasper 20696471fe remove marc balmer as maintainer of all of his ports, to take away the
illusion marc still maintains them. as requested by himself.
2009-09-15 17:37:21 +00:00

87 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.26 2009/09/15 17:37:22 jasper Exp $
SHARED_ONLY= Yes
COMMENT= DTP program
DISTNAME= scribus-1.3.4
PKGNAME= ${DISTNAME}p9
CATEGORIES= print
# These are actually internal modules, not generic shared libs
SHARED_LIBS= scribus12format 0.0 \
scribus134format 0.0 \
scribus13format 0.0
HOMEPAGE= http://www.scribus.net/
# GPLv2+
PERMIT_PACKAGE_CDROM?= Yes
PERMIT_PACKAGE_FTP?= Yes
PERMIT_DISTFILES_CDROM?=Yes
PERMIT_DISTFILES_FTP?= Yes
WANTLIB += ICE SM X11 Xau Xdmcp Xext asn1 c crypto expat fontconfig
WANTLIB += freetype gcrypt gnutls gpg-error gssapi krb5 m pthread
WANTLIB += pthread-stubs stdc++ tasn1 util xcb z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scribus/}
EXTRACT_SUFX= .tar.bz2
MODULES= x11/qt3 \
devel/gettext \
lang/python
MODQT_MT= Yes
RUN_DEPENDS= :shared-mime-info-*:misc/shared-mime-info \
::devel/desktop-file-utils
LIB_DEPENDS= jpeg::graphics/jpeg \
lcms::graphics/lcms \
art_lgpl_2::graphics/libart \
png::graphics/png \
tiff::graphics/tiff \
${MODPY_LIB_DEPENDS} \
cups::print/cups \
xml2::textproc/libxml
USE_X11= Yes
USE_GMAKE= Yes
USE_LIBTOOL= Yes
CONFIGURE_STYLE=autoconf gnu
AUTOCONF_VERSION=2.60
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 barcodegenerator colorwheel docim oldscribusformat pdbim
.for _n in ${PLUGINS}
MAKE_FLAGS+= lib${_n}_la_LDFLAGS='-module -avoid-version'
.endfor
post-install:
rm -rf ${WRKINST}/usr/local/share/doc/scribus
mv ${WRKINST}/usr/local/share/doc/${DISTNAME} \
${WRKINST}/usr/local/share/doc/scribus
@${INSTALL_DATA_DIR} ${PREFIX}/share/applications
@${INSTALL_DATA} ${WRKSRC}/scribus.desktop ${PREFIX}/share/applications
.include <bsd.port.mk>