diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-04-09 07:40:18 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-04-09 07:40:18 +0000 |
commit | ef999b1dc08bb384eb02e174ba7db36f2683edd6 (patch) | |
tree | 0eef64ccaa749ce0071a5b14ec54ce7a307a33ff /multimedia/gsubedit | |
parent | - Add missing BUILD_DEPENS to devel/automake14 (diff) |
- Support CFLAGS properly
- Remove unnecessary USE_BISON
- Utilize NOPORTDOCS
PR: 36892
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=57487
Diffstat (limited to 'multimedia/gsubedit')
-rw-r--r-- | multimedia/gsubedit/Makefile | 25 | ||||
-rw-r--r-- | multimedia/gsubedit/files/patch-pixmaps::Makefile.in | 11 | ||||
-rw-r--r-- | multimedia/gsubedit/pkg-plist | 15 |
3 files changed, 27 insertions, 24 deletions
diff --git a/multimedia/gsubedit/Makefile b/multimedia/gsubedit/Makefile index 95cad49fa091..912598a18b4c 100644 --- a/multimedia/gsubedit/Makefile +++ b/multimedia/gsubedit/Makefile @@ -8,6 +8,7 @@ PORTNAME= gsubedit PORTVERSION= 0.3 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -15,14 +16,28 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org USE_X_PREFIX= yes -USE_BISON= yes +USE_GMAKE= yes USE_GNOME= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-gnome -USE_GMAKE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" post-patch: - @${PERL} -pi -e "s,Bison ,Bison,g" ${WRKSRC}/configure - @${PERL} -pi -e "s,doc/,share/doc/,g" ${WRKSRC}/Makefile.in + @${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 .include <bsd.port.mk> diff --git a/multimedia/gsubedit/files/patch-pixmaps::Makefile.in b/multimedia/gsubedit/files/patch-pixmaps::Makefile.in deleted file mode 100644 index d0740b8a5471..000000000000 --- a/multimedia/gsubedit/files/patch-pixmaps::Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- pixmaps/Makefile.in.orig Tue Mar 12 01:34:16 2002 -+++ pixmaps/Makefile.in Tue Mar 12 01:36:23 2002 -@@ -119,7 +119,7 @@ - cflags_set = @cflags_set@ - cxxflags_set = @cxxflags_set@ - --gsubedit_pixmapsdir = $(prefix)/@NO_PREFIX_PACKAGE_PIXMAPS_DIR@ -+gsubedit_pixmapsdir = $(prefix)/share/gnome/pixmaps/gsubedit - - gsubedit_pixmaps_DATA = \ - gsubedit_icon.png diff --git a/multimedia/gsubedit/pkg-plist b/multimedia/gsubedit/pkg-plist index e17f1514a555..2ae2b753d5cb 100644 --- a/multimedia/gsubedit/pkg-plist +++ b/multimedia/gsubedit/pkg-plist @@ -1,13 +1,12 @@ bin/gsubedit -share/doc/gsubedit/ABOUT-NLS -share/doc/gsubedit/AUTHORS -share/doc/gsubedit/COPYING -share/doc/gsubedit/ChangeLog -share/doc/gsubedit/INSTALL -share/doc/gsubedit/README -share/doc/gsubedit/TODO +%%PORTDOCS%%share/doc/gsubedit/AUTHORS +%%PORTDOCS%%share/doc/gsubedit/ChangeLog +%%PORTDOCS%%share/doc/gsubedit/INSTALL +%%PORTDOCS%%share/doc/gsubedit/README +%%PORTDOCS%%share/doc/gsubedit/TODO share/gnome/apps/Applications/gsubedit.desktop share/gnome/help/gsubedit/C/index.html share/gnome/help/gsubedit/C/topic.dat -share/gnome/locale/sv/LC_MESSAGES/gsubedit.mo share/gnome/pixmaps/gsubedit/gsubedit_icon.png +share/locale/sv/LC_MESSAGES/gsubedit.mo +%%PORTDOCS%%@dirrm share/doc/gsubedit |