freebsd-ports/graphics/dia/Makefile

47 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: dia
# Date created: 21 December 1999
# Whom: saper@system.pl
#
# $FreeBSD$
#
PORTNAME= dia
2003-04-04 09:21:03 +02:00
PORTVERSION= 0.91
CATEGORIES= graphics gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
2003-04-04 09:21:03 +02:00
MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.91
DIST_SUBDIR= gnome2
MAINTAINER?= gnome@FreeBSD.org
COMMENT= Diagram creation program, similar to Visio
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
2003-04-04 09:21:03 +02:00
gnomeui-2.200:${PORTSDIR}/x11-toolkits/libgnomeui
2003-04-04 09:21:03 +02:00
USE_BZIP2= yes
2000-10-05 09:22:56 +02:00
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_GNOMENG= yes
2003-04-04 09:21:03 +02:00
USE_GNOME= gnomeprefix gnomehack
2000-10-05 09:22:56 +02:00
USE_LIBTOOL= yes
2003-04-04 09:21:03 +02:00
CONFIGURE_ARGS= --enable-gnome --enable-bonobo
2000-10-05 09:22:56 +02:00
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
2001-05-17 23:48:25 +02:00
LIBS="-L${LOCALBASE}/lib -lintl"
MAN1= dia.1
2003-04-04 09:21:03 +02:00
.if !defined(WITHOUT_PYTHON)
USE_PYTHON= yes
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygtk.py:${PORTSDIR}/x11-toolkits/py-gtk2
CONFIGURE_ARGS+= --with-python
PLIST_SUB= PYTHON:=""
.else
PLIST_SUB= PYTHON:="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
.include <bsd.port.mk>