68 lines
1.6 KiB
Makefile
Raw Normal View History

2006-09-18 11:59:59 +00:00
# $OpenBSD: Makefile,v 1.8 2006/09/18 11:59:59 espie Exp $
2006-01-05 21:07:45 +00:00
SHARED_ONLY= Yes
2006-01-05 21:07:45 +00:00
COMMENT= "DTP program"
DISTNAME= scribus-1.2.2.1
PKGNAME= ${DISTNAME}p3
2006-01-05 21:07:45 +00:00
CATEGORIES= print
2006-01-05 21:07:45 +00:00
HOMEPAGE= http://www.scribus.org.uk/
2006-01-05 21:07:45 +00:00
# GPL
PERMIT_PACKAGE_CDROM?= Yes
PERMIT_PACKAGE_FTP?= Yes
PERMIT_DISTFILES_CDROM?=Yes
PERMIT_DISTFILES_FTP?= Yes
2005-11-17 21:06:27 +00:00
WANTLIB= ICE SM X11 Xext c freetype gcrypt gnutls gpg-error \
m pthread stdc++ z
2006-01-05 21:07:45 +00:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scribus/}
2006-01-05 21:07:45 +00:00
EXTRACT_SUFX= .tar.bz2
MODULES= x11/qt3 devel/gettext
2006-01-05 21:07:45 +00:00
MODQT_MT= Yes
LIB_DEPENDS= jpeg::graphics/jpeg \
lcms::graphics/lcms \
2006-09-18 11:59:59 +00:00
art_lgpl_2::graphics/libart \
2006-01-05 21:07:45 +00:00
png::graphics/png \
tiff::graphics/tiff \
2006-09-18 11:59:59 +00:00
python2.4:python-2.4.*:lang/python/2.4 \
2006-01-05 21:07:45 +00:00
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>