aboutsummaryrefslogtreecommitdiff
path: root/sysutils/sge60
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2006-12-04 16:39:10 +0000
committerBrooks Davis <brooks@FreeBSD.org>2006-12-04 16:39:10 +0000
commit1e333c4b7c44c23363eb9d351010d6e8f97c8cf4 (patch)
treea1f02b69e1b52047c1a4746c5b5b0d3c690ad4af /sysutils/sge60
parent55b20f3ee8e844808f3c25b680554d9d62243b59 (diff)
downloadports-1e333c4b7c44c23363eb9d351010d6e8f97c8cf4.tar.gz
ports-1e333c4b7c44c23363eb9d351010d6e8f97c8cf4.zip
Fix X11BASE!=/usr/X11R6 case.
Fix an apparently harmless typo in CXXFLAGS substitution.
Notes
Notes: svn path=/head/; revision=178838
Diffstat (limited to 'sysutils/sge60')
-rw-r--r--sysutils/sge60/Makefile7
-rw-r--r--sysutils/sge60/files/patch-aimk18
2 files changed, 19 insertions, 6 deletions
diff --git a/sysutils/sge60/Makefile b/sysutils/sge60/Makefile
index 48bb491694e0..221cf05fed3e 100644
--- a/sysutils/sge60/Makefile
+++ b/sysutils/sge60/Makefile
@@ -148,8 +148,11 @@ post-patch:
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
${WRKSRC}/dist/util/arch_variables \
${WRKSRC}/dist/pvm/src/aimk
- @${REINPLACE_CMD} -e "s|%%CC%%|${CC}|g" -e "s|%%CXX%%|${CXX}|g" \
- -e "s|%%CFLAGS%%|${CFLAGS}|g" -e "s|%CXXFLAGS%%|${CXXFLAGS}|g" \
+ @${REINPLACE_CMD} -e "s|%%CC%%|${CC}|g" \
+ -e "s|%%CXX%%|${CXX}|g" \
+ -e "s|%%CFLAGS%%|${CFLAGS}|g" \
+ -e "s|%%CXXFLAGS%%|${CXXFLAGS}|g" \
+ -e "s|%%X11BASE%%|${X11BASE}|g" \
${WRKSRC}/aimk \
${WRKSRC}/dist/pvm/src/aimk
@${REINPLACE_CMD} -e 's|^CC = gcc|CC = ${CC}|' \
diff --git a/sysutils/sge60/files/patch-aimk b/sysutils/sge60/files/patch-aimk
index 90b307c388a6..7936b6d9c408 100644
--- a/sysutils/sge60/files/patch-aimk
+++ b/sysutils/sge60/files/patch-aimk
@@ -1,8 +1,8 @@
$FreeBSD$
---- aimk.orig
-+++ aimk
+--- aimk.orig Tue Oct 25 17:48:15 2005
++++ aimk Mon Dec 4 15:57:37 2006
@@ -397,7 +397,7 @@
if ( $?SGE_INPUT_CFLAGS ) then
set INP_CFLAGS = "$SGE_INPUT_CFLAGS"
@@ -12,7 +12,7 @@ $FreeBSD$
endif
# Default build targets for which we have seperate make files
-@@ -1171,8 +1171,8 @@
+@@ -1180,12 +1180,12 @@
set MAKE = gmake
set OFLAG = "-O"
set ARFLAGS = rcv
@@ -23,7 +23,17 @@ $FreeBSD$
set DLLIB = ""
set DEPEND_FLAGS = "$CFLAGS $XMTINCD"
set PTHRDSFLAGS = "-D_REENTRANT -D__USE_REENTRANT"
-@@ -1191,7 +1191,7 @@
+- set CFLAGS = "$OFLAG -Wall -DFREEBSD -D$BUILDARCH -DGETHOSTBYNAME_M -DGETHOSTBYADDR_M $DEBUG_FLAG $CFLAGS -I/usr/X11R6/include"
++ set CFLAGS = "$OFLAG -Wall -DFREEBSD -D$BUILDARCH -DGETHOSTBYNAME_M -DGETHOSTBYADDR_M $DEBUG_FLAG $CFLAGS -I%%X11BASE%%/include"
+ set NOERR_CFLAG = "-Wno-error"
+ set LFLAGS = "$DEBUG_FLAG $LFLAGS"
+ set LIBS = "$LIBS -lkvm"
+@@ -1196,11 +1196,11 @@
+ set XMTDEF = ""
+ set XINCD = "$XMTINCD $XINCD -I/usr/X11/include"
+ set XCFLAGS = "-Wno-strict-prototypes -Wno-error $XMTDEF $XINCD"
+- set XLIBD = "-L/usr/X11R6/lib"
++ set XLIBD = "-L%%X11BASE%%/lib"
set XLFLAGS = "$XLIBD"
set XLIBS = " -Xlinker -lXm -Xlinker -Bdynamic -lXpm -lXt -lXext -lX11 -lSM -lICE -lXp"
set RM = "rm -f"