aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2002-09-18 20:32:37 +0800
committerroam <roam@FreeBSD.org>2002-09-18 20:32:37 +0800
commit1a160dc112ba1b3cf59d127fc567ebbbc6cc1ee9 (patch)
treeb7472e9d187892a2983a368a1d78de0b13a3e839 /devel
parentcbb76562597c195af7793a5f0187c6f7302ba3b8 (diff)
downloadfreebsd-ports-gnome-1a160dc112ba1b3cf59d127fc567ebbbc6cc1ee9.tar.gz
freebsd-ports-gnome-1a160dc112ba1b3cf59d127fc567ebbbc6cc1ee9.tar.zst
freebsd-ports-gnome-1a160dc112ba1b3cf59d127fc567ebbbc6cc1ee9.zip
Support CFLAGS/CXXFLAGS properly.
Honor NOPORTDOCS. PR: 42878 Submitted by: Ports Fury
Diffstat (limited to 'devel')
-rw-r--r--devel/gindent/Makefile14
-rw-r--r--devel/gindent/files/patch-doc:Makefile.in22
-rw-r--r--devel/gindent/pkg-plist4
3 files changed, 26 insertions, 14 deletions
diff --git a/devel/gindent/Makefile b/devel/gindent/Makefile
index 1efdb88e703c..e9d2655db3ce 100644
--- a/devel/gindent/Makefile
+++ b/devel/gindent/Makefile
@@ -8,6 +8,7 @@
PORTNAME= gindent
PORTVERSION= 2.2.8a
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://home.hccnet.nl/d.ingamells/ \
${MASTER_SITE_GNU}
@@ -16,13 +17,14 @@ DISTNAME= indent-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-LIB_DEPENDS= intl:${PORTSDIR}/devel/gettext
+LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
+CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS= --program-prefix=g --without-included-gettext
+CONFIGURE_ARGS= --program-prefix=g
MAKE_ARGS= BERKELEY_DEFAULTS=1
MAN1= gindent.1
@@ -31,4 +33,10 @@ post-patch:
@${GREP} -lR "malloc.h" ${WRKSRC} | ${XARGS} \
${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g"
+.if !defiend(NOPORTDOCS)
+post-install:
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/indent.html ${DOCSDIR}
+.endif
+
.include <bsd.port.mk>
diff --git a/devel/gindent/files/patch-doc:Makefile.in b/devel/gindent/files/patch-doc:Makefile.in
index b6a375e5d868..2c5664e7231d 100644
--- a/devel/gindent/files/patch-doc:Makefile.in
+++ b/devel/gindent/files/patch-doc:Makefile.in
@@ -1,11 +1,15 @@
---- doc/Makefile.in.orig Tue Jun 25 14:31:43 2002
-+++ doc/Makefile.in Tue Jun 25 14:32:50 2002
-@@ -103,7 +103,7 @@
+--- doc/Makefile.in.orig Wed May 22 04:01:16 2002
++++ doc/Makefile.in Sun Sep 15 03:21:16 2002
+@@ -364,9 +364,9 @@
- info_TEXINFOS = indent.texinfo
--docdir = $(prefix)/doc/@PACKAGE@
-+docdir = $(prefix)/share/doc/@PACKAGE@
- dvidir = $(docdir)
- psdir = $(docdir)
- pdfdir = $(docdir)
+ all-local: html
+-install-data-local: install-html
+-installdirs-local: installdirs-html
+-uninstall-local: uninstall-html
++install-data-local: # install-html
++installdirs-local: # installdirs-html
++uninstall-local: # uninstall-html
+
+ html: html-$(HTMLSTYLE)
+ install-html: install-html-$(HTMLSTYLE)
diff --git a/devel/gindent/pkg-plist b/devel/gindent/pkg-plist
index 3592c8e8ebde..ef83850f185d 100644
--- a/devel/gindent/pkg-plist
+++ b/devel/gindent/pkg-plist
@@ -3,7 +3,7 @@ bin/gtexinfo2man
@unexec install-info --delete %D/info/indent.info %D/info/dir
info/indent.info
@exec install-info %D/info/indent.info %D/info/dir
-share/doc/indent/indent.html
+%%PORTDOCS%%share/doc/gindent/indent.html
share/locale/ca/LC_MESSAGES/indent.mo
share/locale/da/LC_MESSAGES/indent.mo
share/locale/de/LC_MESSAGES/indent.mo
@@ -21,4 +21,4 @@ share/locale/sk/LC_MESSAGES/indent.mo
share/locale/sv/LC_MESSAGES/indent.mo
share/locale/tr/LC_MESSAGES/indent.mo
share/locale/zh_TW.Big5/LC_MESSAGES/indent.mo
-@dirrm share/doc/indent
+%%PORTDOCS%%@dirrm share/doc/gindent