freebsd-ports/cad/leocad/files/patch-config.mk
Pete Fritchman 0eedcf658b Add leocad 0.73, a CAD program that uses bricks similar to those
found in many toys.

PR:		35231
Submitted by:	David Yeske <dyeske@yahoo.com>
2002-03-03 00:40:21 +00:00

33 lines
683 B
Makefile

$FreeBSD$
--- config.mk.orig Mon Sep 18 21:06:37 2000
+++ config.mk Sat Mar 2 19:21:24 2002
@@ -4,11 +4,11 @@
default: all
-CC := gcc
-CXX := g++
+CC ?= gcc
+CXX ?= g++
# (Add a -g for debugging)
-CPPFLAGS += -O2 -Wall
+CPPFLAGS += -Wall
# Add compile options, such as -I option to include jpeglib's headers
# CPPFLAGS += -I/home/fred/jpeglib
@@ -33,9 +33,10 @@
OS := -DLC_LINUX
OSDIR := linux
-PREFIX := /usr/local
+PREFIX := /usr/X11R6
GTK_CONFIG := gtk12-config
-CPPFLAGS += -L/usr/local/lib
+CPPFLAGS += ${CFLAGS} -L%%LOCALBASE%%/lib -I%%LOCALBASE%%/include %%PTHREAD_CFLAGS%%
+LDFLAGS += -L%%LOCALBASE%%/lib %%PTHREAD_LIBS%%
endif