2007-03-26 01:57:30 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2007/03/26 05:57:30 mbalmer Exp $
|
2005-09-04 19:48:35 -04:00
|
|
|
|
2006-01-05 16:07:45 -05:00
|
|
|
SHARED_ONLY= Yes
|
2005-09-04 19:48:35 -04:00
|
|
|
|
2006-01-05 16:07:45 -05:00
|
|
|
COMMENT= "DTP program"
|
2007-03-26 01:57:30 -04:00
|
|
|
DISTNAME= scribus-1.3.3.8
|
2006-01-05 16:07:45 -05:00
|
|
|
CATEGORIES= print
|
2005-09-04 19:48:35 -04:00
|
|
|
|
2006-10-20 18:52:47 -04:00
|
|
|
HOMEPAGE= http://www.scribus.net/
|
|
|
|
|
|
|
|
MAINTAINER= Marc Balmer <mbalmer@openbsd.org>
|
2005-09-04 19:48:35 -04:00
|
|
|
|
2006-01-05 16:07:45 -05:00
|
|
|
# GPL
|
|
|
|
PERMIT_PACKAGE_CDROM?= Yes
|
|
|
|
PERMIT_PACKAGE_FTP?= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM?=Yes
|
|
|
|
PERMIT_DISTFILES_FTP?= Yes
|
2005-03-07 09:05:59 -05:00
|
|
|
|
2005-11-17 16:06:27 -05:00
|
|
|
WANTLIB= ICE SM X11 Xext c freetype gcrypt gnutls gpg-error \
|
2007-03-26 01:57:30 -04:00
|
|
|
m pthread stdc++ z util fontconfig Xau Xdmcp expat
|
2005-03-07 09:05:59 -05:00
|
|
|
|
2006-01-05 16:07:45 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scribus/}
|
2005-03-07 09:05:59 -05:00
|
|
|
|
2006-01-05 16:07:45 -05:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
2005-03-07 09:05:59 -05:00
|
|
|
|
2006-10-20 18:52:47 -04:00
|
|
|
MODULES= x11/qt3 devel/gettext lang/python
|
2006-01-05 16:07:45 -05:00
|
|
|
MODQT_MT= Yes
|
|
|
|
|
|
|
|
LIB_DEPENDS= jpeg::graphics/jpeg \
|
|
|
|
lcms::graphics/lcms \
|
2006-09-18 07:59:59 -04:00
|
|
|
art_lgpl_2::graphics/libart \
|
2006-01-05 16:07:45 -05:00
|
|
|
png::graphics/png \
|
|
|
|
tiff::graphics/tiff \
|
2006-10-20 18:52:47 -04:00
|
|
|
python${MODPY_VERSION}:python-${MODPY_VERSION}.*:lang/python/${MODPY_VERSION} \
|
2006-01-05 16:07:45 -05:00
|
|
|
cups::print/cups \
|
|
|
|
xml2::textproc/libxml
|
|
|
|
|
2006-11-13 07:51:14 -05:00
|
|
|
USE_X11= Yes
|
2006-01-05 16:07:45 -05:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE=gnu
|
|
|
|
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
|
2005-03-07 09:05:59 -05:00
|
|
|
|
2006-01-06 03:20:20 -05:00
|
|
|
PLUGINS=about charselect csvim fontpreview htmlim importps \
|
|
|
|
newfromtemplateplugin odtimplugin oodrawimp pdf postscript preferences \
|
|
|
|
preview saveastemplateplugin scribusexportpixmap scribusshortwords \
|
2006-10-20 18:52:47 -04:00
|
|
|
scriptplugin svgexplugin svgimplugin sxwimplugin textfilterplugin \
|
|
|
|
txtim barcodegenerator colorwheel docim oldscribusformat pdbim
|
2006-01-06 03:20:20 -05:00
|
|
|
.for _n in ${PLUGINS}
|
|
|
|
MAKE_FLAGS+= lib${_n}_la_LDFLAGS='-module -avoid-version'
|
|
|
|
.endfor
|
|
|
|
|
2006-10-20 18:52:47 -04:00
|
|
|
post-install:
|
|
|
|
rm -rf ${WRKINST}/usr/local/share/doc/scribus
|
|
|
|
mv ${WRKINST}/usr/local/share/doc/${DISTNAME} \
|
|
|
|
${WRKINST}/usr/local/share/doc/scribus
|
|
|
|
|
2005-03-07 09:05:59 -05:00
|
|
|
.include <bsd.port.mk>
|