freebsd-ports/cad/electric/files/patch-aa
Mario Sergio Fujikawa Ferreira 10b636ca5a Uphold ${MOTIFLIB}
Submitted by: bento
2000-11-02 06:11:12 +00:00

63 lines
2.1 KiB
Plaintext

--- Makefile.in.orig Tue Mar 21 19:44:24 2000
+++ Makefile.in Wed Nov 1 03:49:14 2000
@@ -14,7 +14,7 @@
############################################### X WIDGET SELECTION ############
##### If using Motif/Lesstif widgets, uncomment the next two lines
TIFFLAGS = -DUSETIF
-XTLIBS = -lXm @XMULIB@ -lXt
+XTLIBS = ${MOTIFLIB} @XMULIB@ -lXt
##### If using Athena widgets, uncomment the next line
# XTLIBS = -lXaw @XMULIB@ -lXt
@@ -356,18 +356,19 @@
BUILDOPTS = $(DEBUG)
BUILDDIR = obj
HDS = src/include
-EXTRA_CFLAGS = $(LANGCFLAGS) $(PROJCFLAGS) $(CADENCECFLAGS)
-CFLAGS = $(EXTRA_CFLAGS) $(DEBUG) -I$(HDS) $(MULTIPROCESSORCFLAGS)
+EXTRA_CFLAGS = $(LANGCFLAGS) $(PROJCFLAGS) $(CADENCECFLAGS) @CFLAGS@ -I$(X11BASE)/include
+CFLAGS = $(EXTRA_CFLAGS) $(DEBUG) -I$(HDS) $(MULTIPROCESSORCFLAGS)
XCFLAGS = @X_CFLAGS@ $(CFLAGS) $(TIFFLAGS) $(XPOWER)
INSTALL = cp
-INSTALL_PROGRAM = $(INSTALL)
-INSTALL_DATA = $(INSTALL)
+INSTALL_PROGRAM = $(BSD_INSTALL_PROGRAM)
+INSTALL_DATA = $(BSD_INSTALL_DATA)
+INSTALL_DIR = $(HACK_INSTALL_DIR)
prefix = @prefix@
exec_prefix = @exec_prefix@
LIBS = @X_PRE_LIBS@ @X_LIBS@ $(XTLIBS) -lX11 -lm @X_EXTRA_LIBS@
# the target of the build
-electric: $(CORE_OBJS)
+all: $(CORE_OBJS)
$(COMPILER) $(BUILDOPTS) -o electric $(CORE_OBJS) $(LIBS)
clean:
@@ -422,15 +423,17 @@
rm -f src/usr/*~ src/usr/"#"*"#"
rm -f src/vhdl/*~ src/vhdl/"#"*"#"
-install: all $(prefix)/electric $(prefix)/electric/lib
+install: all @datadir@/electric @datadir@/electric/lib
$(INSTALL_PROGRAM) electric @bindir@/electric
- $(INSTALL_DATA) lib/* $(prefix)/electric/lib
- $(INSTALL_DATA) lib/.cadrc $(prefix)/electric/lib
-
-$(prefix)/electric:
- mkdir $(prefix)/electric
-$(prefix)/electric/lib:
- mkdir $(prefix)/electric/lib
+ $(INSTALL_DATA) lib/*.help @datadir@/electric/lib
+ $(INSTALL_DATA) lib/*.mac @datadir@/electric/lib
+ $(INSTALL_DATA) lib/*.txt @datadir@/electric/lib
+ $(INSTALL_DATA) lib/.cadrc @datadir@/electric/lib
+
+@datadir@/electric:
+ $(INSTALL_DIR) @datadir@/electric
+@datadir@/electric/lib:
+ $(INSTALL_DIR) @datadir@/electric/lib
uninstall:
rm -f @bindir@/electric