aboutsummaryrefslogtreecommitdiff
path: root/graphics/openproducer
diff options
context:
space:
mode:
authorMaho Nakata <maho@FreeBSD.org>2003-07-26 01:38:16 +0000
committerMaho Nakata <maho@FreeBSD.org>2003-07-26 01:38:16 +0000
commitf1bbddd0c381983591bc2f73810c97cf43e55aac (patch)
tree4d9bec8f2ba70a9213efc94a6a4176c564fcc2b0 /graphics/openproducer
parent900ee8b130392d860ef7739efa36ad999a134010 (diff)
downloadports-f1bbddd0c381983591bc2f73810c97cf43e55aac.tar.gz
ports-f1bbddd0c381983591bc2f73810c97cf43e55aac.zip
Notes
Diffstat (limited to 'graphics/openproducer')
-rw-r--r--graphics/openproducer/Makefile4
-rw-r--r--graphics/openproducer/files/patch-Make::makedefs30
2 files changed, 30 insertions, 4 deletions
diff --git a/graphics/openproducer/Makefile b/graphics/openproducer/Makefile
index 85ea52e432d2..5556e24e6d2a 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 4b2bf0e55da5..0f986e33541e 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