summaryrefslogtreecommitdiffstats
path: root/math/rpc
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-09-20 07:08:13 +0000
committerijliao <ijliao@FreeBSD.org>2002-09-20 07:08:13 +0000
commitcda18bfb6ab4c91e6f10f08dfa3d502ac1089d8c (patch)
tree1eb0d50889cc64e75833bdf4a2d401e28818af3e /math/rpc
parente98ddc936b8eef55565aef8c8f05d513c08c52b4 (diff)
downloadFreeBSD-ports-cda18bfb6ab4c91e6f10f08dfa3d502ac1089d8c.zip
FreeBSD-ports-cda18bfb6ab4c91e6f10f08dfa3d502ac1089d8c.tar.gz
- Support CFLAGS/CXXFLAGS properly
- Utilize NOPORTDOCS PR: 42898 Submitted by: Ports Fury
Diffstat (limited to 'math/rpc')
-rw-r--r--math/rpc/Makefile11
-rw-r--r--math/rpc/files/patch-src::Makefile.in13
-rw-r--r--math/rpc/pkg-plist2
3 files changed, 24 insertions, 2 deletions
diff --git a/math/rpc/Makefile b/math/rpc/Makefile
index 25b825c..c3f4fd0 100644
--- a/math/rpc/Makefile
+++ b/math/rpc/Makefile
@@ -8,6 +8,7 @@
PORTNAME= rpc
PORTVERSION= 0.96
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= http://www.eecs.umich.edu/~pelzlpj/rpc/
@@ -16,9 +17,15 @@ MAINTAINER= ports@FreeBSD.org
BUILD_DEPENDS= ${LOCALBASE}/lib/libccm.so:${PORTSDIR}/math/ccmath
RUN_DEPENDS= ${LOCALBASE}/lib/libccm.so:${PORTSDIR}/math/ccmath
+USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
-USE_GMAKE= yes
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/manual ${DOCSDIR}
+.endif
.include <bsd.port.mk>
diff --git a/math/rpc/files/patch-src::Makefile.in b/math/rpc/files/patch-src::Makefile.in
new file mode 100644
index 0000000..7609150
--- /dev/null
+++ b/math/rpc/files/patch-src::Makefile.in
@@ -0,0 +1,13 @@
+--- src/Makefile.in.orig Mon Aug 13 13:01:30 2001
++++ src/Makefile.in Mon Sep 16 22:04:55 2002
+@@ -67,8 +67,8 @@
+
+ bin_PROGRAMS = rpc
+
+-CFLAGS = -O2 -Wall
+-CXXFLAGS = -O2 -Wall
++CFLAGS = @CFLAGS@
++CXXFLAGS = @CXXFLAGS@
+ INCLUDES = @CURSES_INCLUDEDIR@
+ LDADD = -lm -lccm @CURSES_LIBS@
+
diff --git a/math/rpc/pkg-plist b/math/rpc/pkg-plist
index 32632dd..b7b2197 100644
--- a/math/rpc/pkg-plist
+++ b/math/rpc/pkg-plist
@@ -1 +1,3 @@
bin/rpc
+%%PORTDOCS%%share/doc/rpc/manual
+%%PORTDOCS%%@dirrm share/doc/rpc
OpenPOWER on IntegriCloud