aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/dia/Makefile
blob: 35748d48168336666ec70c12b8ffea560389a733 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:    dia
# Date created:        21 December 1999
# Whom:                saper@system.pl
#
# $FreeBSD$
#

PORTNAME=   dia
PORTVERSION=    0.91
CATEGORIES= graphics gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
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 \
        gnomeui-2.200:${PORTSDIR}/x11-toolkits/libgnomeui

USE_BZIP2=  yes
USE_X_PREFIX=   yes
USE_GMAKE=  yes
USE_GNOMENG=    yes
USE_GNOME=  gnomeprefix gnomehack
USE_LIBTOOL=    yes
CONFIGURE_ARGS= --enable-gnome --enable-bonobo
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib -lintl"

MAN1=       dia.1

.if !defined(WITHOUT_PYTHON)
USE_PYTHON= yes
BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/pygtk.py:${PORTSDIR}/x11-toolkits/py-gtk2
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>