aboutsummaryrefslogtreecommitdiff
path: root/audio/gnump3d
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-05-30 18:05:32 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-05-30 18:05:32 +0000
commit5b81c2f3b9c87a3df32dc58a54e19be6dd623af7 (patch)
tree747755dda1d9ad709135d1eb7085f7c8faf034db /audio/gnump3d
parent56bc9f9ef8ac7b5ceaeda7394de724383265929a (diff)
downloadports-5b81c2f3b9c87a3df32dc58a54e19be6dd623af7.tar.gz
ports-5b81c2f3b9c87a3df32dc58a54e19be6dd623af7.zip
- Support CXX/CXXFLAGS properly
- Support install macros - bump portrevision PR: 38706 Submitted by: Ports Fury
Notes
Notes: svn path=/head/; revision=60314
Diffstat (limited to 'audio/gnump3d')
-rw-r--r--audio/gnump3d/Makefile9
-rw-r--r--audio/gnump3d/files/patch-freebsd80
2 files changed, 74 insertions, 15 deletions
diff --git a/audio/gnump3d/Makefile b/audio/gnump3d/Makefile
index 7b05e864ebb8..d565ad0cd506 100644
--- a/audio/gnump3d/Makefile
+++ b/audio/gnump3d/Makefile
@@ -8,19 +8,18 @@
PORTNAME= gnump3d
PORTVERSION= 0.9.9.7
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
+MAKE_ENV= CC="${CXX}" CFLAGS="${CXXFLAGS}" \
+ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}"
ALL_TARGET= freebsd
MAN1= mp3d.1 mp3d.conf.1 mp3d-top.1
-post-patch:
- @${PERL} -pi -e "s,^PREFIX,#PREFIX,g ; \
- s,/usr/local,${PREFIX},g ; \
- s,-pthread,${PTHREAD_LIBS},g" ${WRKSRC}/mkfiles/freebsd
-
.include <bsd.port.mk>
diff --git a/audio/gnump3d/files/patch-freebsd b/audio/gnump3d/files/patch-freebsd
index 02529f165001..de549f1a6bb5 100644
--- a/audio/gnump3d/files/patch-freebsd
+++ b/audio/gnump3d/files/patch-freebsd
@@ -1,15 +1,75 @@
---- mkfiles/freebsd.orig Mon May 27 21:23:17 2002
-+++ mkfiles/freebsd Mon May 27 21:23:31 2002
-@@ -116,10 +116,10 @@
- install ../mp3d.conf $(CONFIGDIR)
+--- mkfiles/freebsd.orig Thu May 16 18:08:35 2002
++++ mkfiles/freebsd Tue May 28 02:00:05 2002
+@@ -6,8 +6,8 @@
+ # if you wish you may change PREFIX to be /usr/local,
+ # for example
+ #
+-PREFIX =
+-#PREFIX = /usr/local
++#PREFIX =
++PREFIX ?= /usr/local
+
+ #
+ # Binary installation directory.
+@@ -24,7 +24,7 @@
+ #
+ # Where we install the manpages.
+ #
+-MANDIR = /usr/local/man/man1
++MANDIR = $(PREFIX)/man/man1
+
+
+
+@@ -32,12 +32,12 @@
+ O = o
+ RM = rm -f
+ RMDIR = rm -rf
+-CC = g++
+-LIBS = -pthread
++CC ?= g++
++LIBS = ${PTHREAD_LIBS}
+
+
+-DEFAULT_CFLAGS = -I. -D_THREAD_SAFE -D_REENTRANT -DBINARY_DIR="\"$(BINARYDIR)\"" -DSYSCONFDIR="\"$(CONFIGDIR)\"" -DVERSION="\"0.9.9.7\""
+-CFLAGS = $(DEFAULT_CFLAGS) -Wall -DFREEBSD=1 -DOS_TYPE="\"FreeBSD\""
++DEFAULT_CFLAGS = -I. ${PTHREAD_CFLAGS} -D_REENTRANT -DBINARY_DIR="\"$(BINARYDIR)\"" -DSYSCONFDIR="\"$(CONFIGDIR)\"" -DVERSION="\"0.9.9.7\""
++CFLAGS += $(DEFAULT_CFLAGS) -Wall -DFREEBSD=1 -DOS_TYPE="\"FreeBSD\""
+
+
+ #
+@@ -110,22 +110,22 @@
+ # Install the software.
+ #
+ install: $(PROG)
+- install -d $(BINARYDIR) -d $(CONFIGDIR) -d $(TEMPLATEDIR)
+- install ../mp3d $(BINARYDIR)
+- install ../contrib/stats/mp3d-top $(BINARYDIR)
+- install ../mp3d.conf $(CONFIGDIR)
++ mkdir -p $(BINARYDIR) $(CONFIGDIR) $(TEMPLATEDIR)
++ ${BSD_INSTALL_PROGRAM} ../mp3d $(BINARYDIR)
++ ${BSD_INSTALL_SCRIPT} ../contrib/stats/mp3d-top $(BINARYDIR)
++ ${BSD_INSTALL_DATA} ../mp3d.conf $(CONFIGDIR)
# Default template.
- install -d $(TEMPLATEDIR)/default
+- install -d $(TEMPLATEDIR)/default
- cp -R ../templates/default/ $(TEMPLATEDIR)
-+ cp -R ../templates/default $(TEMPLATEDIR)
++ mkdir -p $(TEMPLATEDIR)/default
++ ${BSD_INSTALL_DATA} ../templates/default/* $(TEMPLATEDIR)/default
# Simple template
- install -d $(TEMPLATEDIR)/simple
+- install -d $(TEMPLATEDIR)/simple
- cp -R ../templates/simple/ $(TEMPLATEDIR)
-+ cp -R ../templates/simple $(TEMPLATEDIR)
- install ../templates/README $(TEMPLATEDIR)
+- install ../templates/README $(TEMPLATEDIR)
++ mkdir -p $(TEMPLATEDIR)/simple
++ ${BSD_INSTALL_DATA} ../templates/simple/* $(TEMPLATEDIR)/simple
++ ${BSD_INSTALL_DATA} ../templates/README $(TEMPLATEDIR)
# Man pages.
- install -d $(MANDIR)
+- install -d $(MANDIR)
+- install ../doc/mp3d.1 $(MANDIR)
+- install ../doc/mp3d.conf.1 $(MANDIR)
+- install ../doc/mp3d-top.1 $(MANDIR)
++ mkdir -p $(MANDIR)
++ ${BSD_INSTALL_DATA} ../doc/mp3d.1 $(MANDIR)
++ ${BSD_INSTALL_DATA} ../doc/mp3d.conf.1 $(MANDIR)
++ ${BSD_INSTALL_DATA} ../doc/mp3d-top.1 $(MANDIR)
+
+
+ #