summaryrefslogtreecommitdiff
path: root/x11-toolkits/xforms
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2003-01-25 21:42:48 +0000
committerMikhail Teterin <mi@FreeBSD.org>2003-01-25 21:42:48 +0000
commit99e456bb466ee10cdc501234d6a152fd71be84d6 (patch)
tree491af020bc8d092622ef6ce28b2a93579a97c52a /x11-toolkits/xforms
parentUpgrade to 1.2.3. Set MAINTAINER to the submitter. (diff)
Respect the CFLAGS and the X11BASE
Approved by: maintainer
Notes
Notes: svn path=/head/; revision=73999
Diffstat (limited to 'x11-toolkits/xforms')
-rw-r--r--x11-toolkits/xforms/Makefile11
-rw-r--r--x11-toolkits/xforms/files/patch-aa9
2 files changed, 13 insertions, 7 deletions
diff --git a/x11-toolkits/xforms/Makefile b/x11-toolkits/xforms/Makefile
index 79214ad45bb6..1e27ae2e6e8b 100644
--- a/x11-toolkits/xforms/Makefile
+++ b/x11-toolkits/xforms/Makefile
@@ -13,6 +13,8 @@ CATEGORIES= x11-toolkits graphics
MASTER_SITES= ftp://ncmir.ucsd.edu/pub/xforms/OpenSource/
DISTNAME= ${PORTNAME}-${PORTVERSION}-release
EXTRACT_SUFX= .tgz
+USE_REINPLACE= yes
+REINPLACE_ARGS= -i ""
MAINTAINER= mikeh@FreeBSD.ORG
@@ -26,4 +28,13 @@ NO_FILTER_SHLIBS= yes
MAN1= fdesign.1 fd2ps.1
+post-patch:
+ ${REINPLACE_CMD} -e 's|-O4|${CFLAGS}|' ${WRKSRC}/Imakefile
+.if defined(X11BASE)
+. if ${X11BASE} != "/usr/X11R6"
+ ${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' \
+ ${WRKSRC}/image/rgb_db.c
+. endif
+.endif
+
.include <bsd.port.mk>
diff --git a/x11-toolkits/xforms/files/patch-aa b/x11-toolkits/xforms/files/patch-aa
index ddd559b4cec3..ba70cd885776 100644
--- a/x11-toolkits/xforms/files/patch-aa
+++ b/x11-toolkits/xforms/files/patch-aa
@@ -1,14 +1,9 @@
--- Imakefile.orig Tue Dec 3 12:25:43 2002
+++ Imakefile Wed Dec 18 21:25:38 2002
-@@ -2,7 +2,7 @@
+@@ -21,3 +21,2 @@
- /* Fairly important stuff */
+-#define DebugSymbols YES
--#define OptimizationLevel -O4
-+#define OptimizationLevel -O
- #define DoWall NO
-
- #define BuildShared YES
@@ -45,10 +45,10 @@
#define TiffIncLoc /usr/local/include
#define TiffLibLoc /usr/local/lib