summaryrefslogtreecommitdiff
path: root/graphics/dia/Makefile
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-07-12 12:05:25 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-07-12 12:05:25 +0000
commit006b931300723b014d3494f00990d6d063454579 (patch)
tree9770bac971dac2abaaab731ab6b690f501360df1 /graphics/dia/Makefile
parentAdd libunicode to the LIB_DEPENDS is dia is built without full GNOME support. (diff)
- Use USE_GNOMENG;
- fix on -current by renaming isspecial() inline into dia_isspecial(); - enable freetype support.
Notes
Notes: svn path=/head/; revision=62856
Diffstat (limited to 'graphics/dia/Makefile')
-rw-r--r--graphics/dia/Makefile36
1 files changed, 10 insertions, 26 deletions
diff --git a/graphics/dia/Makefile b/graphics/dia/Makefile
index 3dfffcac7516..dd49ee07d11f 100644
--- a/graphics/dia/Makefile
+++ b/graphics/dia/Makefile
@@ -13,45 +13,29 @@ MASTER_SITE_SUBDIR= stable/sources/dia
MAINTAINER?= gnome@FreeBSD.org
+BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
- gdk_pixbuf.2:${PORTSDIR}/graphics/gdk-pixbuf
+ freetype.9:${PORTSDIR}/print/freetype2 \
+ unicode.0:${PORTSDIR}/devel/libunicode
USE_X_PREFIX= yes
USE_GMAKE= yes
-USE_GNOMELIBS= yes
+USE_GNOMENG= yes
+USE_GNOME= gnomeprefix gnomehack gnomelibs gdkpixbuf gnomeprint
USE_LIBTOOL= yes
+CONFIGURE_ARGS= --enable-gnome --enable-gnome-print --enable-bonobo \
+ --enable-freetype
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib -lintl"
MAN1= dia.1
-.include <bsd.port.pre.mk>
-
-.if exists(${X11BASE}/bin/panel) || defined(WITH_GNOME) || defined(PACKAGE_BUILDING)
-.undef WITHOUT_GNOME
-USE_GNOME= yes
-PKGNAMESUFFIX= -gnome
-CONFIGURE_ARGS= --enable-gnome \
- --enable-gnome-print
-PLIST_SUB+= DIAHELP="help/dia" \
- GNOME:=""
-MAKE_ENV= HAVE_GNOME="yes"
-.else
-CONFIGURE_ARGS= --disable-gnome
-LIB_DEPENDS+= unicode.0:${PORTSDIR}/devel/libunicode
-PLIST_SUB+= DIAHELP="dia/help" \
- GNOME:="@comment "
-.endif
-
-pre-patch:
- @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
- @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
- 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
- s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
post-install:
${SED} "s|%%PREFIX%%|${PREFIX}|g" ${FILESDIR}/dia.sh > ${WRKDIR}/dia.sh
${INSTALL_SCRIPT} ${WRKDIR}/dia.sh ${PREFIX}/bin/dia
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>