aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gsubedit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/gsubedit/Makefile')
-rw-r--r--multimedia/gsubedit/Makefile53
1 files changed, 31 insertions, 22 deletions
diff --git a/multimedia/gsubedit/Makefile b/multimedia/gsubedit/Makefile
index f5a422bf6f47..8af07e452641 100644
--- a/multimedia/gsubedit/Makefile
+++ b/multimedia/gsubedit/Makefile
@@ -6,14 +6,14 @@
# $FreeBSD$
#
-PORTNAME= gsubedit
-PORTVERSION= 0.3
-PORTREVISION= 1
-CATEGORIES= graphics
+PORTNAME= GSubEdit
+PORTVERSION= 0.4.p1
+CATEGORIES= graphics gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
-MASTER_SITE_SUBDIR= ${PORTNAME}
+MASTER_SITE_SUBDIR= ${PORTNAME:L}
+DISTNAME= ${PORTNAME:L}-${PORTVERSION:S/.p/pre/}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= lioux@FreeBSD.org
USE_REINPLACE= yes
USE_X_PREFIX= yes
@@ -21,24 +21,33 @@ USE_GMAKE= yes
USE_GNOMENG= yes
USE_GNOME= gnomeprefix gnomehack gnomelibs
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS= --without-included-gettext
post-patch:
- @${REINPLACE_CMD} -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} ${REINPLACE_CMD} -e \
- 's|^gsubeditdoc|#gsubeditdoc|g ; \
- s|-g -O2|| '
-
-post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in AUTHORS ChangeLog INSTALL README TODO
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
+# CFLAGS safeness
+# pthread safeness
+ @${REINPLACE_CMD} -E -e 's|-g -O2||; \
+ s|-lpthread|${PTHREAD_LIBS}|g' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
+ ${WRKSRC}/src/Makefile.in
+# prefix safeness for docs
+ @${REINPLACE_CMD} -E -e \
+ 's|^(gsubeditdocdir[[:space:]]*=).*$$|\1${DOCSDIR}|' \
+ ${WRKSRC}/Makefile.in
+# prefix safeness for pixmaps
+ @${REINPLACE_CMD} -E -e \
+ 's|^(packagepixmapsdir[[:space:]]*=).*$$|\1share/gnome/pixmaps/\$${PACKAGE}|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} \
+# install neither charset.alias nor locale.alias. Therefore, do not
+# build distfiles' gettext
+ @${REINPLACE_CMD} -E -e \
+ 's|^(SUBDIRS[[:space:]]*=.+)intl|\1|' \
+ ${WRKSRC}/Makefile.in
+# do not install docs
+.ifdef(NOPORTDOCS)
+ @${REINPLACE_CMD} -E -e \
+ 's|^(install-data-am.+)install-gsubeditdocDATA|\1|'
+ \ ${WRKSRC}/Makefile.in
.endif
.include <bsd.port.mk>