summaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2006-12-01 00:25:00 +0000
committerkris <kris@FreeBSD.org>2006-12-01 00:25:00 +0000
commitf041c11eb8da0fc22ac413fb2c1b820807f0db6b (patch)
treed838bcce95aba1e1c64ea36fceddaa1972d1c147 /cad
parentfab8731e25e58078c2216f9746f0326ce93d6422 (diff)
downloadFreeBSD-ports-f041c11eb8da0fc22ac413fb2c1b820807f0db6b.zip
FreeBSD-ports-f041c11eb8da0fc22ac413fb2c1b820807f0db6b.tar.gz
Don't hard-code /usr/X11R6
Diffstat (limited to 'cad')
-rw-r--r--cad/leocad/Makefile1
-rw-r--r--cad/leocad/files/patch-config.mk2
2 files changed, 2 insertions, 1 deletions
diff --git a/cad/leocad/Makefile b/cad/leocad/Makefile
index 51ac08f..b73861b 100644
--- a/cad/leocad/Makefile
+++ b/cad/leocad/Makefile
@@ -39,6 +39,7 @@ post-extract:
post-patch:
@${REINPLACE_CMD} -e \
+ 's|%%X11BASE%%|${X11BASE}|g; \
's|%%LOCALBASE%%|${LOCALBASE}|g; \
s|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|; \
s|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|' \
diff --git a/cad/leocad/files/patch-config.mk b/cad/leocad/files/patch-config.mk
index 47f21be..8f9dc51 100644
--- a/cad/leocad/files/patch-config.mk
+++ b/cad/leocad/files/patch-config.mk
@@ -22,7 +22,7 @@ $FreeBSD$
OS := -DLC_LINUX
OSDIR := linux
-PREFIX := /usr/local
-+PREFIX := /usr/X11R6
++PREFIX := %%X11BASE%%
GTK_CONFIG := gtk12-config
-CPPFLAGS += -L/usr/local/lib
+CPPFLAGS += ${CFLAGS} -L%%LOCALBASE%%/lib -I%%LOCALBASE%%/include %%PTHREAD_CFLAGS%%
OpenPOWER on IntegriCloud