summaryrefslogtreecommitdiff
path: root/x11-toolkits/xforms/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/xforms/Makefile')
-rw-r--r--x11-toolkits/xforms/Makefile11
1 files changed, 11 insertions, 0 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>