aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/dia/Makefile
blob: 76e7a1a65caff4091c056ad09a94b17895b757c2 (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
# New ports collection makefile for:    dia
# Date created:        21 December 1999
# Whom:                saper@system.pl
#
# $FreeBSD$
#

PORTNAME=   dia
PORTVERSION=    0.90
CATEGORIES+=    graphics gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/dia/0.90

MAINTAINER?=    gnome@FreeBSD.org

BUILD_DEPENDS=  freetype-config:${PORTSDIR}/print/freetype2
LIB_DEPENDS=    popt.0:${PORTSDIR}/devel/popt \
        freetype.9:${PORTSDIR}/print/freetype2 \
        unicode.0:${PORTSDIR}/devel/libunicode

USE_X_PREFIX=   yes
USE_GMAKE=  yes
USE_GNOMENG=    yes
USE_GNOME=  gnomeprefix gnomehack gnomelibs gdkpixbuf bonobo
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

post-patch:
    @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
         s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure

post-install:
    ${SED} "s|%%PREFIX%%|${PREFIX}|g" ${FILESDIR}/dia.sh > ${WRKDIR}/dia.sh
    ${INSTALL_SCRIPT} ${WRKDIR}/dia.sh ${PREFIX}/bin/dia

.include <bsd.port.mk>