1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
PR:		43294
Submitted by:	maintainer
This commit is contained in:
Ying-Chieh Liao 2002-09-28 14:00:18 +00:00
parent 4bd9c8b5a9
commit e3b3d5fa78
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=67187

View File

@ -1,40 +1,40 @@
--- Makefile.orig Sun Jan 6 18:34:24 2002 --- Makefile.orig Sun Jan 6 18:34:24 2002
+++ Makefile Mon May 13 01:20:42 2002 +++ Makefile Mon May 13 01:20:42 2002
@@ -1,25 +1,16 @@ @@ -1,25 +1,16 @@
# parts taken from ladspa-sdk src/makefile # parts taken from ladspa-sdk src/makefile
-INCLUDES = -I/usr/local/include -INCLUDES = -I/usr/local/include
-#LIBRARIES = -ldl -lm -#LIBRARIES = -ldl -lm
-CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC -CFLAGS = $(INCLUDES) -Wall -Werror -O3 -fPIC
-CXXFLAGS = $(CFLAGS) -CXXFLAGS = $(CFLAGS)
+CXXFLAGS += -I${LOCALBASE}/include +CXXFLAGS += -I${LOCALBASE}/include
PLUGINS = aw.so PLUGINS = aw.so
-CC = cc -CC = cc
-CPP = c++ -CPP = c++
############################################################################### ###############################################################################
# #
# RULES TO BUILD PLUGINS FROM C OR C++ CODE # RULES TO BUILD PLUGINS FROM C OR C++ CODE
# #
-%.so: %.c -%.so: %.c
- $(CC) $(CFLAGS) -c $*.c - $(CC) $(CFLAGS) -c $*.c
- $(LD) -o $*.so $*.o -shared - $(LD) -o $*.so $*.o -shared
- -
%.so: %.cpp %.so: %.cpp
- $(CPP) $(CXXFLAGS) -c $*.cpp - $(CPP) $(CXXFLAGS) -c $*.cpp
- $(CPP) -o $*.so $*.o -shared - $(CPP) -o $*.so $*.o -shared
+ $(CXX) $(CXXFLAGS) -c $*.cpp + $(CXX) $(CXXFLAGS) -c $*.cpp
+ $(CXX) -o $*.so $*.o -shared + $(CXX) -o $*.so $*.o -shared
############################################################################### ###############################################################################
# #
@@ -29,7 +20,7 @@ @@ -29,7 +20,7 @@
all: $(PLUGINS) all: $(PLUGINS)
install: install:
- cp aw.so /usr/local/lib/ladspa/ - cp aw.so /usr/local/lib/ladspa/
+ cp aw.so ${LOCALBASE}/lib/ladspa/ + cp aw.so ${LOCALBASE}/lib/ladspa/
clean: clean:
-rm -f *.o *.so -rm -f *.o *.so