1999-11-25 15:52:51 +01:00
|
|
|
# New ports collection makefile for: dia
|
1999-12-23 02:53:23 +01:00
|
|
|
# Date created: 21 December 1999
|
1999-11-25 15:52:51 +01:00
|
|
|
# Whom: saper@system.pl
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-13 08:28:28 +02:00
|
|
|
PORTNAME= dia
|
2001-05-17 23:48:25 +02:00
|
|
|
PORTVERSION= 0.88
|
2000-08-15 08:45:19 +02:00
|
|
|
CATEGORIES= graphics gnome
|
1999-12-23 02:53:23 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
|
|
|
MASTER_SITE_SUBDIR= stable/sources/dia
|
1999-11-25 15:52:51 +01:00
|
|
|
|
2001-05-11 18:36:50 +02:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
1999-11-25 15:52:51 +01:00
|
|
|
|
2000-10-05 09:22:56 +02:00
|
|
|
USE_X_PREFIX= yes
|
2000-08-07 13:31:22 +02:00
|
|
|
USE_GMAKE= yes
|
2000-10-05 09:22:56 +02:00
|
|
|
USE_IMLIB= yes
|
|
|
|
WANT_GNOME= yes
|
|
|
|
USE_LIBTOOL= yes
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2001-05-17 23:48:25 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib -lintl"
|
1999-11-25 15:52:51 +01:00
|
|
|
|
|
|
|
MAN1= dia.1
|
|
|
|
|
2000-10-05 09:22:56 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(HAVE_GNOME)
|
|
|
|
USE_GNOME= yes
|
|
|
|
CONFIGURE_ARGS= --enable-gnome
|
|
|
|
.endif
|
|
|
|
|
2000-08-07 13:31:22 +02:00
|
|
|
pre-patch:
|
2001-03-29 18:35:19 +02:00
|
|
|
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
|
2000-08-07 13:31:22 +02:00
|
|
|
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
|
|
|
|
|
2000-10-05 09:22:56 +02:00
|
|
|
.include <bsd.port.post.mk>
|