diff options
author | kris <kris@FreeBSD.org> | 2006-12-01 00:25:00 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2006-12-01 00:25:00 +0000 |
commit | f041c11eb8da0fc22ac413fb2c1b820807f0db6b (patch) | |
tree | d838bcce95aba1e1c64ea36fceddaa1972d1c147 /cad | |
parent | fab8731e25e58078c2216f9746f0326ce93d6422 (diff) | |
download | FreeBSD-ports-f041c11eb8da0fc22ac413fb2c1b820807f0db6b.zip FreeBSD-ports-f041c11eb8da0fc22ac413fb2c1b820807f0db6b.tar.gz |
Don't hard-code /usr/X11R6
Diffstat (limited to 'cad')
-rw-r--r-- | cad/leocad/Makefile | 1 | ||||
-rw-r--r-- | cad/leocad/files/patch-config.mk | 2 |
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%% |