diff options
-rw-r--r-- | graphics/openproducer/Makefile | 4 | ||||
-rw-r--r-- | graphics/openproducer/files/patch-Make::makedefs | 30 |
2 files changed, 30 insertions, 4 deletions
diff --git a/graphics/openproducer/Makefile b/graphics/openproducer/Makefile index 85ea52e432d..5556e24e6d2 100644 --- a/graphics/openproducer/Makefile +++ b/graphics/openproducer/Makefile @@ -27,6 +27,10 @@ MAKEFILE= GNUmakefile # opt = optimized ($OPTF added); debug = debug ($DBGF added); opt is default ALL_TARGET= opt +post-patch: + @${REINPLACE_CMD} -e 's,%%CXXFLAGS%%,${CXXFLAGS},g' \ + ${WRKSRC}/Make/makedefs + post-install: ${LN} -sf ${PREFIX}/lib/libProducer.so ${PREFIX}/lib/libProducer.so.0 .if !defined(NOPORTDOCS) diff --git a/graphics/openproducer/files/patch-Make::makedefs b/graphics/openproducer/files/patch-Make::makedefs index 4b2bf0e55da..0f986e33541 100644 --- a/graphics/openproducer/files/patch-Make::makedefs +++ b/graphics/openproducer/files/patch-Make::makedefs @@ -1,6 +1,28 @@ ---- Make/makedefs.orig Sat Apr 19 01:07:23 2003 -+++ Make/makedefs Mon Jul 21 18:15:32 2003 -@@ -239,8 +239,15 @@ +--- Make/makedefs.orig Sat Apr 19 02:07:23 2003 ++++ Make/makedefs Sat Jul 26 10:06:16 2003 +@@ -57,7 +57,7 @@ + -DGLX_GLXEXT_PROTOTYPES + INC = -I$(TOPDIR)/include + +-CXXFLAGS = $(ARCHARGS) $(DOF) $(DEF) $(INC) ++CXXFLAGS = $(ARCHARGS) $(DOF) $(DEF) $(INC) %%CXXFLAGS%% + LDFLAGS = $(ARCHARGS) $(DOF) $(LINKARGS) -L$(TOPDIR)/lib + OBJS = $(CXXFILES:.cpp=.o) \ + $(CFILES:.c=.o) \ +@@ -228,19 +228,23 @@ + + #### FreeBSD specific definitions + ifeq ($(OS),FreeBSD) +- ifeq (x$(CXX),x) +- CXX = g++ +- endif + DEPARG = -MM +- INC += -I/usr/local/include -I/usr/X11R6/include ++ INC += -I${LOCALBASE}/include -I${X11BASE}/include + DEF += -W -Wall +- OPTF = -O2 ++ OPTF = + DBGF = -g SHARED = -shared ARCH = 32 ARCHARGS = @@ -8,7 +30,7 @@ - INST_SHARE_PREFIX = /usr/share/Producer + INST_SYS_PREFIX = $(PREFIX) + INST_SHARE_PREFIX = $(INST_SYS_PREFIX)/share/openproducer -+ LINKARGS = -L/usr/X11R6/lib -L/usr/local/lib -rpath /usr/local/lib -rpath /usr/X11R6/lib ++ LINKARGS = -L${X11BASE}/lib -L${LOCALBASE}/lib -rpath ${LOCALBASE}/lib -rpath ${X11BASE}/lib + INST_LOCATION = $(INST_SYS_PREFIX) + INST_SHARE = $(INST_SHARE_PREFIX) + INST_DEMOS = $(INST_LOCATION)/openproducer/bin |