diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2017-04-30 00:34:15 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2017-04-30 00:34:15 +0800 |
commit | 3bafac68e110d119bb9a76a1c95ed5066a325bde (patch) | |
tree | 3b0d95f24ce1e34b0d5e909ff3e5844911e64bb5 /audio | |
parent | ed98d9d9647c616da772956ea7527f2285dc3ee0 (diff) | |
download | freebsd-ports-gnome-3bafac68e110d119bb9a76a1c95ed5066a325bde.tar.gz freebsd-ports-gnome-3bafac68e110d119bb9a76a1c95ed5066a325bde.tar.zst freebsd-ports-gnome-3bafac68e110d119bb9a76a1c95ed5066a325bde.zip |
Add goattracker 2.73, a crossplatform music editor for creating Commodore
64 music.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/Makefile | 1 | ||||
-rw-r--r-- | audio/goattracker/Makefile | 52 | ||||
-rw-r--r-- | audio/goattracker/distinfo | 3 | ||||
-rw-r--r-- | audio/goattracker/files/patch-src_bme_makefile | 15 | ||||
-rw-r--r-- | audio/goattracker/files/patch-src_makefile | 12 | ||||
-rw-r--r-- | audio/goattracker/files/patch-src_makefile.common | 49 | ||||
-rw-r--r-- | audio/goattracker/pkg-descr | 5 | ||||
-rw-r--r-- | audio/goattracker/pkg-plist | 22 |
8 files changed, 159 insertions, 0 deletions
diff --git a/audio/Makefile b/audio/Makefile index a1d7ca3fee7a..f7d2583cdede 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -221,6 +221,7 @@ SUBDIR += gnupod SUBDIR += gnuspeechsa SUBDIR += gnustep-cdplayer + SUBDIR += goattracker SUBDIR += gogglesmm SUBDIR += goobox SUBDIR += gqmpeg diff --git a/audio/goattracker/Makefile b/audio/goattracker/Makefile new file mode 100644 index 000000000000..ad3f3759bf57 --- /dev/null +++ b/audio/goattracker/Makefile @@ -0,0 +1,52 @@ +# Created by: Emanuel Haupt <ehaupt@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= goattracker +PORTVERSION= 2.73 +CATEGORIES= audio +MASTER_SITES= SF/goattracker2/GoatTracker%202/${PORTVERSION} +DISTNAME= GoatTracker_${PORTVERSION} + +MAINTAINER= ehaupt@FreeBSD.org +COMMENT= Crossplatform music editor for creating Commodore 64 music + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/copying + +USES= dos2unix gmake zip +USE_SDL= sdl + +EXTRACT_AFTER_ARGS= -d ${WRKSRC} + +MAKEFILE= makefile + +OPTIONS_DEFINE= DOCS EXAMPLES + +MAKE_JOBS_UNSAFE=yes + +CFLAGS+= `sdl-config --cflags` +LIBS+= `sdl-config --libs` + +DESKTOP_ENTRIES="GoatTracker 2" \ + "${COMMENT}" \ + "${PREFIX}/share/pixmaps/goattrk2.ico" \ + "goattrk2" \ + "" \ + false + +do-build: + @cd ${WRKSRC}/src/bme; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} + @cd ${WRKSRC}/src; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} + +do-install: +.for f in betaconv goattrk2 gt2reloc ins2snd2 mod2sng sngspli2 + ${INSTALL_PROGRAM} ${WRKSRC}/linux/${f} ${STAGEDIR}${PREFIX}/bin +.endfor + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps + ${INSTALL_DATA} ${WRKSRC}/src/goattrk2.ico ${STAGEDIR}${PREFIX}/share/pixmaps + ${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/*.sng ${STAGEDIR}${EXAMPLESDIR} + +.include <bsd.port.mk> diff --git a/audio/goattracker/distinfo b/audio/goattracker/distinfo new file mode 100644 index 000000000000..51d64974a76d --- /dev/null +++ b/audio/goattracker/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1493416360 +SHA256 (GoatTracker_2.73.zip) = 4d24c5919f47c69791ea7b457586849621e205a20e4c3ad5eb37d1a0cbcf9563 +SIZE (GoatTracker_2.73.zip) = 1168212 diff --git a/audio/goattracker/files/patch-src_bme_makefile b/audio/goattracker/files/patch-src_bme_makefile new file mode 100644 index 000000000000..1964ed321870 --- /dev/null +++ b/audio/goattracker/files/patch-src_bme_makefile @@ -0,0 +1,15 @@ +--- src/bme/makefile.orig 2017-04-29 15:05:37 UTC ++++ src/bme/makefile +@@ -1,10 +1,10 @@ + all: dat2inc datafile + + datafile: datafile.c bme_end.c +- gcc -o datafile datafile.c bme_end.c ++ $(CC) $(CFLAGS) -o datafile datafile.c bme_end.c + strip datafile + + dat2inc: dat2inc.c +- gcc -o dat2inc dat2inc.c ++ $(CC) $(CFLAGS) -o dat2inc dat2inc.c + strip dat2inc + diff --git a/audio/goattracker/files/patch-src_makefile b/audio/goattracker/files/patch-src_makefile new file mode 100644 index 000000000000..8c80e0c187ab --- /dev/null +++ b/audio/goattracker/files/patch-src_makefile @@ -0,0 +1,12 @@ +--- src/makefile.orig 2017-04-29 15:05:37 UTC ++++ src/makefile +@@ -2,9 +2,7 @@ + # Linux makefile + # + +-CFLAGS=`sdl-config --cflags` + PREFIX=../linux/ + SUFFIX= +-LIBS=`sdl-config --libs` + + include makefile.common diff --git a/audio/goattracker/files/patch-src_makefile.common b/audio/goattracker/files/patch-src_makefile.common new file mode 100644 index 000000000000..54e4bc02acb0 --- /dev/null +++ b/audio/goattracker/files/patch-src_makefile.common @@ -0,0 +1,49 @@ +--- src/makefile.common.orig 2017-04-29 15:05:37 UTC ++++ src/makefile.common +@@ -1,9 +1,9 @@ + # common makefile directives for linux and win32 build + +-CC=gcc +-CXX=g++ +-CFLAGS+=-O3 -Wall -Ibme -Iasm +-CXXFLAGS=$(CFLAGS) ++CC?=gcc ++CXX?=g++ ++CFLAGS+=-Ibme -Iasm ++CXXFLAGS+=$(CFLAGS) + + EXE= $(PREFIX)goattrk2$(SUFFIX) \ + $(PREFIX)gt2reloc$(SUFFIX) \ +@@ -48,26 +48,26 @@ bme/bme_gfx.o bme/bme_snd.o bme/bme_win. + strip $@ + + $(PREFIX)mod2sng$(SUFFIX): mod2sng.o bme/bme_end.o +- gcc -o $@ $^ ++ $(CC) -o $@ $^ + strip $@ + + $(PREFIX)ins2snd2$(SUFFIX): ins2snd2.o bme/bme_end.o +- gcc -o $@ $^ ++ $(CC) -o $@ $^ + strip $@ + + $(PREFIX)sngspli2$(SUFFIX): sngspli2.o bme/bme_end.o +- gcc -o $@ $^ ++ $(CC) -o $@ $^ + strip $@ + + $(PREFIX)betaconv$(SUFFIX): betaconv.o bme/bme_end.o +- gcc -o $@ $^ ++ $(CC) -o $@ $^ + strip $@ + + goattrk2.dat: player.s altplayer.s chargen.bin palette.bin cursor.bin goattrk2.bmp goattrk2.seq +- datafile $@ goattrk2.seq ++ ./bme/datafile $@ goattrk2.seq + + goatdata.c: goattrk2.dat +- dat2inc $< $@ ++ ./bme/dat2inc $< $@ + + clean: + $(RM) *.o *~ diff --git a/audio/goattracker/pkg-descr b/audio/goattracker/pkg-descr new file mode 100644 index 000000000000..0808bf0d34d5 --- /dev/null +++ b/audio/goattracker/pkg-descr @@ -0,0 +1,5 @@ +GoatTracker is a crossplatform C64 music editor including powerful +step-programming (wave/arpeggio, pulse and filter), 63 instruments, +instrument parameters & pattern commands. + +WWW: http://covertbitops.c64.org/ diff --git a/audio/goattracker/pkg-plist b/audio/goattracker/pkg-plist new file mode 100644 index 000000000000..df7601fad95f --- /dev/null +++ b/audio/goattracker/pkg-plist @@ -0,0 +1,22 @@ +bin/betaconv +bin/goattrk2 +bin/gt2reloc +bin/ins2snd2 +bin/mod2sng +bin/sngspli2 +share/pixmaps/goattrk2.ico +%%PORTDOCS%%%%DOCSDIR%%/readme.txt +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/2xtest.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cabrinigreen.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/consultant.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dojo.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/everlasting.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/funktest.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/ghosttrackers.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hyperspace.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sanction.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sixpack.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tempo2test.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/transylvanian.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/unleash.sng +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wavecmdtest.sng |