# $OpenBSD: Makefile,v 1.18 2007/12/16 11:30:20 ajacoutot Exp $ SHARED_ONLY= Yes COMMENT= DTP program DISTNAME= scribus-1.3.4 PKGNAME= ${DISTNAME}p1 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/ MAINTAINER= Marc Balmer # GPL PERMIT_PACKAGE_CDROM?= Yes PERMIT_PACKAGE_FTP?= Yes PERMIT_DISTFILES_CDROM?=Yes PERMIT_DISTFILES_FTP?= Yes WANTLIB= ICE SM X11 Xext c crypto freetype \ m pthread stdc++ ssl z util fontconfig Xau Xdmcp expat MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scribus/} EXTRACT_SUFX= .tar.bz2 MODULES= x11/qt3 converters/libiconv lang/python MODQT_MT= Yes RUN_DEPENDS= :shared-mime-info-*:misc/shared-mime-info LIB_DEPENDS= jpeg::graphics/jpeg \ lcms::graphics/lcms \ art_lgpl_2::graphics/libart \ png::graphics/png \ tiff::graphics/tiff \ python${MODPY_VERSION}:python-${MODPY_VERSION}.*:lang/python/${MODPY_VERSION} \ cups::print/cups \ xml2::textproc/libxml USE_X11= Yes 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 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 .include