diff options
-rw-r--r-- | x11-toolkits/xforms/Makefile | 11 | ||||
-rw-r--r-- | x11-toolkits/xforms/files/patch-aa | 9 |
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 |