Use MAKE_ARGS

This commit is contained in:
Volker Stolz 2005-10-13 11:47:24 +00:00
parent 3d1bc825a6
commit 450ee5240e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=145247
2 changed files with 1 additions and 41 deletions

View file

@ -19,7 +19,7 @@ BUILD_DEPENDS= ${LOCALBASE}/include/ladspa.h:${PORTSDIR}/audio/ladspa
USE_GMAKE= yes
INSTALLS_SHLIB= yes
PLIST_FILES= lib/ladspa/aw.so
MAKE_ENV= CXX="${CXX}"
MAKE_ARGS= CPP="${CXX}" CXXFLAGS="${CXXFLAGS} -I${LOCALBASE}/include -fPIC"
do-install:
@${INSTALL_DATA} ${WRKSRC}/aw.so ${LOCALBASE}/lib/ladspa

View file

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