freebsd-ports/graphics/dia/Makefile

48 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
PORTVERSION= 0.86
2000-08-15 08:45:19 +02:00
CATEGORIES= graphics gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= stable/sources/dia
MAINTAINER= saper@system.pl
2000-10-05 09:22:56 +02:00
LIB_DEPENDS= xml.5:${PORTSDIR}/textproc/libxml \
popt.0:${PORTSDIR}/devel/popt
2000-10-05 09:22:56 +02:00
USE_X_PREFIX= yes
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" \
LIBS="-L${LOCALBASE}/lib"
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
pre-patch:
@${PERL} -pi -e 's|-lpthread|-pthread|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
2000-10-05 09:22:56 +02:00
.include <bsd.port.post.mk>