2002-03-11 17:54:27 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: gsubedit
|
|
|
|
# Date created: Mar 12, 2002
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gsubedit
|
|
|
|
PORTVERSION= 0.3
|
2002-04-09 07:40:18 +00:00
|
|
|
PORTREVISION= 1
|
2002-03-11 17:54:27 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2002-04-09 07:40:18 +00:00
|
|
|
USE_GMAKE= yes
|
2002-03-11 17:54:27 +00:00
|
|
|
USE_GNOME= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2002-04-09 07:40:18 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2002-03-11 17:54:27 +00:00
|
|
|
|
|
|
|
post-patch:
|
2002-04-09 07:40:18 +00:00
|
|
|
@${PERL} -pi -e 's|Bison |Bison|g ; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g ; \
|
|
|
|
s|DATADIRNAME=lib|DATADIRNAME=share|g ; \
|
|
|
|
s|share/pixmaps|share/gnome/pixmaps|g' ${WRKSRC}/configure
|
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in*" | ${XARGS} ${PERL} -pi -e \
|
|
|
|
's|^gsubeditdoc|#gsubeditdoc|g ; \
|
|
|
|
s|-g -O2|| ; \
|
|
|
|
s|\$$\(datadir\)/locale|\$$\(prefix\)/share/locale|'
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for file in AUTHORS ChangeLog INSTALL README TODO
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2002-03-11 17:54:27 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|