aboutsummaryrefslogtreecommitdiffstats
path: root/audio/timidity
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-02-07 05:26:25 +0800
committerantoine <antoine@FreeBSD.org>2014-02-07 05:26:25 +0800
commitab022873a76f91bdaaa3365e965f741992394c80 (patch)
treeafb8fbbc0b18a97c17df2b8730528a6a2f565922 /audio/timidity
parent66edfeec572ec77e049a9847a2fb08845edc8522 (diff)
downloadfreebsd-ports-gnome-ab022873a76f91bdaaa3365e965f741992394c80.tar.gz
freebsd-ports-gnome-ab022873a76f91bdaaa3365e965f741992394c80.tar.zst
freebsd-ports-gnome-ab022873a76f91bdaaa3365e965f741992394c80.zip
Stage support
Diffstat (limited to 'audio/timidity')
-rw-r--r--audio/timidity/Makefile4
-rw-r--r--audio/timidity/files/patch-ab29
-rw-r--r--audio/timidity/pkg-plist1
3 files changed, 26 insertions, 8 deletions
diff --git a/audio/timidity/Makefile b/audio/timidity/Makefile
index dd4981398c69..8bd2525016e9 100644
--- a/audio/timidity/Makefile
+++ b/audio/timidity/Makefile
@@ -16,15 +16,13 @@ CONFLICTS= timidity++-2.13.*
TIINS= goemon.tgz
INSTALL_TARGET= install.all
-MAN1= timidity.1
-NO_STAGE= yes
post-patch:
${REINPLACE_CMD} -e 's,machine/soundcard.h,sys/soundcard.h,' \
${WRKSRC}/linux_a.c
post-install:
- cd ${PREFIX}/lib/timidity && \
+ cd ${STAGEDIR}${PREFIX}/lib/timidity && \
${TAR} --no-same-owner --no-same-permissions -zxf ${DISTDIR}/${TIINS} && \
${REINPLACE_CMD} -i "" -e 's,dir goemon,dir ${PREFIX}/lib/timidity/goemon,' \
goemon.cfg
diff --git a/audio/timidity/files/patch-ab b/audio/timidity/files/patch-ab
index 2f3be4d11d0f..d1c7db256a70 100644
--- a/audio/timidity/files/patch-ab
+++ b/audio/timidity/files/patch-ab
@@ -1,5 +1,5 @@
---- Makefile.orig Sun May 26 13:26:46 1996
-+++ Makefile Mon Jan 4 04:08:35 1999
+--- ./Makefile.orig 1996-05-26 09:26:46.000000000 +0000
++++ ./Makefile 2014-02-06 21:14:36.000000000 +0000
@@ -24,22 +24,22 @@
# But where to change without revealing my secret identity?
@@ -66,9 +66,28 @@
########### Installation targets
-@@ -262,9 +262,9 @@
- mkdir -p $(TIMID_DIR)
- $(INSTALL) -m 644 $(CONFIGF) $(TIMID_DIR)
+@@ -249,22 +249,22 @@
+
+ # install.bin: $(PROJ) Dumb make thinks it has to have $(COBJS) to install...
+ install.bin:
+- mkdir -p $(BIN_DIR)
+- $(INSTALL) -s -m 755 $(PROJ) $(TOOLS) $(BIN_DIR)
++ mkdir -p $(DESTDIR)$(BIN_DIR)
++ $(INSTALL) -s -m 755 $(PROJ) $(TOOLS) $(DESTDIR)$(BIN_DIR)
+
+ install.man:
+- mkdir -p $(MAN_DIR)
+- $(INSTALL) -m 644 $(MANPAGES) $(MAN_DIR)
++ mkdir -p $(DESTDIR)$(MAN_DIR)
++ $(INSTALL) -m 644 $(MANPAGES) $(DESTDIR)$(MAN_DIR)
+
+ install.lib: install.config install.patch $(INST_TK)
+
+ install.config: $(CONFIGF)
+- mkdir -p $(TIMID_DIR)
+- $(INSTALL) -m 644 $(CONFIGF) $(TIMID_DIR)
++ mkdir -p $(DESTDIR)$(TIMID_DIR)
++ $(INSTALL) -m 644 $(CONFIGF) $(DESTDIR)$(TIMID_DIR)
-install.patch: $(PATCHF)
- mkdir -p $(TIMID_DIR)/patch
diff --git a/audio/timidity/pkg-plist b/audio/timidity/pkg-plist
index c8b393a49881..62b0cf9a500e 100644
--- a/audio/timidity/pkg-plist
+++ b/audio/timidity/pkg-plist
@@ -258,6 +258,7 @@ lib/timidity/midia.cfg
lib/timidity/mt32.cfg
lib/timidity/timidity.cfg
lib/timidity/wowpats.cfg
+man/man1/timidity.1.gz
@dirrm lib/timidity/goemon/gsdrum40
@dirrm lib/timidity/goemon/gsdrum08
@dirrm lib/timidity/goemon/gsdrum00