diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2017-04-19 16:19:58 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2017-04-19 16:19:58 +0800 |
commit | b8dc819d95737f5f61b3442468badce219aa5c74 (patch) | |
tree | 6e055dc70fe5bd1ba0cca41c623dd807aa121331 /audio | |
parent | aa46baa5e37f324695c7b20dd1ef3ce0a2dfb8b4 (diff) | |
download | freebsd-ports-gnome-b8dc819d95737f5f61b3442468badce219aa5c74.tar.gz freebsd-ports-gnome-b8dc819d95737f5f61b3442468badce219aa5c74.tar.zst freebsd-ports-gnome-b8dc819d95737f5f61b3442468badce219aa5c74.zip |
- Move from SF to GitHub
- Update WWW
- Define LICENSE_FILE
- Add ALSA option
- Use autoreconf and
- remove a lot of old cruft that's not needed anymore with the use of
autoreconf
- Bump PORTREVISION just to be safe (autoreconf)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/adplay/Makefile | 42 | ||||
-rw-r--r-- | audio/adplay/distinfo | 9 | ||||
-rw-r--r-- | audio/adplay/files/patch-acinclude.m4 | 20 | ||||
-rw-r--r-- | audio/adplay/pkg-descr | 2 |
4 files changed, 48 insertions, 25 deletions
diff --git a/audio/adplay/Makefile b/audio/adplay/Makefile index 07fd222c9d40..ac4b633f5d13 100644 --- a/audio/adplay/Makefile +++ b/audio/adplay/Makefile @@ -3,48 +3,50 @@ PORTNAME= adplay PORTVERSION= 1.7 -PORTREVISION= 7 +DISTVERSIONPREFIX= v +PORTREVISION= 8 CATEGORIES= audio -MASTER_SITES= SF/adplug/AdPlay_UNIX/${PORTVERSION}:main \ - SF/adplug/Database/2006-07-06:db -DISTFILES= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${EXTRACT_SUFX}:main \ - adplugdb-${DBVERSION}${EXTRACT_SUFX}:db MAINTAINER= ehaupt@FreeBSD.org COMMENT= AdLib player using adplug library LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libadplug.so:audio/libadplug \ libbinio.so:devel/libbinio +USES= autoreconf libtool pkgconfig GNU_CONFIGURE= yes -USES= libtool +USE_GITHUB= yes -DBFILE= adplug.db -DBVERSION= 2006-07-07 +GH_ACCOUNT= adplug +GH_PROJECT= ${PORTNAME}-unix +GH_TUPLE= adplug:database:7ac0819:database/database-${DBVERSION} -CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libbinio -LIBS+= -L${LOCALBASE}/lib -lbinio +DBFILE= adplug.db +DBVERSION= v1.0 CONFIGURE_ARGS+= --sharedstatedir=${DATADIR} -PLIST_FILES= bin/adplay %%DATADIR%%/adplug.db man/man1/adplay.1.gz +OPTIONS_DEFINE= ALSA SDL + +ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib +ALSA_CONFIGURE_WITH= alsa-prefix=${LOCALBASE}/lib +ALSA_CONFIGURE_OFF= --disable-output-alsa +ALSA_CFLAGS+= `pkg-config --cflags alsa` -OPTIONS_DEFINE= SDL SDL_CONFIGURE_OFF= --disable-output-sdl -SDL_USE= SDL=sdl,mixer +SDL_USE= SDL=sdl,mixer + +PLIST_FILES= bin/adplay %%DATADIR%%/adplug.db man/man1/adplay.1.gz post-patch: - @${REINPLACE_CMD} -e 's/-lstdc++//g' ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|^\(adplug_data_dir.*\)/.*|\1|' \ - ${WRKSRC}/src/Makefile.in @${RM} ${WRKSRC}/src/getopt.h -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/adplay ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doc/adplay.1 ${STAGEDIR}${MANPREFIX}/man/man1 +post-install: @${MKDIR} ${STAGEDIR}${DATADIR} - ${INSTALL_DATA} ${WRKDIR}/${DBVERSION}/${DBFILE} ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/database-${DBVERSION}/${DBFILE} \ + ${STAGEDIR}${DATADIR} .include <bsd.port.mk> diff --git a/audio/adplay/distinfo b/audio/adplay/distinfo index 8f62c8380984..8668db07bfe8 100644 --- a/audio/adplay/distinfo +++ b/audio/adplay/distinfo @@ -1,4 +1,5 @@ -SHA256 (adplay-1.7.tar.gz) = 524c02456acee0b1a934a02cd4bfc5c6461813aa7bcf88a68422d8132232c7ad -SIZE (adplay-1.7.tar.gz) = 360854 -SHA256 (adplugdb-2006-07-07.tar.gz) = 3e931150d0e290a7243fe4247376cc910b10cb88932b452fc73c8becedcce8b8 -SIZE (adplugdb-2006-07-07.tar.gz) = 4245 +TIMESTAMP = 1492585695 +SHA256 (adplug-adplay-unix-v1.7_GH0.tar.gz) = 2c3dd462f3c33f3b03a3cfd06b0efd3c90e0ec60bd03f28e7b9b05dde0b76956 +SIZE (adplug-adplay-unix-v1.7_GH0.tar.gz) = 43387 +SHA256 (adplug-database-7ac0819_GH0.tar.gz) = 35e1a166edd841deb5cfd5661af84c520fb8ebf8972158de17bec05ea2676848 +SIZE (adplug-database-7ac0819_GH0.tar.gz) = 4467 diff --git a/audio/adplay/files/patch-acinclude.m4 b/audio/adplay/files/patch-acinclude.m4 new file mode 100644 index 000000000000..0a1636dfd0e7 --- /dev/null +++ b/audio/adplay/files/patch-acinclude.m4 @@ -0,0 +1,20 @@ +--- acinclude.m4.orig 2010-01-01 08:21:00 UTC ++++ acinclude.m4 +@@ -422,7 +422,7 @@ if test "$alsa_prefix" != "" ; then + fi + + dnl add the alsa library +-ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread" ++ALSA_LIBS="$ALSA_LIBS -lasound -lm -lpthread" + LIBS="$ALSA_LIBS $LIBS" + AC_MSG_RESULT($ALSA_LIBS) + +@@ -541,7 +541,7 @@ AC_ARG_ENABLE(aotest, [ --disable-aotes + + # see where dl* and friends live + AC_CHECK_FUNCS(dlopen, [AO_DL_LIBS=""], [ +- AC_CHECK_LIB(dl, dlopen, [AO_DL_LIBS="-ldl"], [ ++ AC_CHECK_LIB(dl, dlopen, [ + AC_MSG_WARN([could not find dlopen() needed by libao sound drivers + your system may not be supported.]) + ]) diff --git a/audio/adplay/pkg-descr b/audio/adplay/pkg-descr index 0e2e659b0783..5e805a378846 100644 --- a/audio/adplay/pkg-descr +++ b/audio/adplay/pkg-descr @@ -1,4 +1,4 @@ Adplay is a command line AdLib player using the adplug library. It supports many AdLib formats such as HSP and HSC. -WWW: http://adplug.sourceforge.net/ +WWW: http://adplug.github.io/ |