aboutsummaryrefslogtreecommitdiffstats
path: root/audio/adplay
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2006-05-19 22:36:22 +0800
committerehaupt <ehaupt@FreeBSD.org>2006-05-19 22:36:22 +0800
commitfe62e6759beab4418e14a1e15015c3e93d177486 (patch)
tree85305b7b98bfb588caa796ed61eca31dbaeb5a40 /audio/adplay
parente705a2cb69d2b72889d28c61fe2f740e2b851446 (diff)
downloadfreebsd-ports-gnome-fe62e6759beab4418e14a1e15015c3e93d177486.tar.gz
freebsd-ports-gnome-fe62e6759beab4418e14a1e15015c3e93d177486.tar.zst
freebsd-ports-gnome-fe62e6759beab4418e14a1e15015c3e93d177486.zip
Implement the official adplug database which contains additional, essential
replay information about problematic files. Some file formats contain too few information about a song for it to be correctly replayed. To counter this, the AdPlug database was created.
Diffstat (limited to 'audio/adplay')
-rw-r--r--audio/adplay/Makefile20
-rw-r--r--audio/adplay/distinfo3
2 files changed, 19 insertions, 4 deletions
diff --git a/audio/adplay/Makefile b/audio/adplay/Makefile
index 565d2e9131c3..8aeac17ca42f 100644
--- a/audio/adplay/Makefile
+++ b/audio/adplay/Makefile
@@ -7,41 +7,53 @@
PORTNAME= adplay
PORTVERSION= 1.5
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= adplug
+DISTFILES= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${EXTRACT_SUFX} \
+ ${DBFILE}
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= AdLib player using adplug library
LIB_DEPENDS= adplug-2.0.0:${PORTSDIR}/audio/libadplug
-PLIST_FILES= bin/adplay
-
GNU_CONFIGURE= yes
USE_GCC= 3.4+
+DBFILE= adplug.db
+
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libbinio
LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ARGS= --sharedstatedir=${DATADIR}
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${CPPFLAGS}" \
CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}" \
CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
MAN1= adplay.1
+PLIST_FILES= bin/adplay %%DATADIR%%/adplug.db
+PLIST_DIRS= %%DATADIR%%
.include <bsd.port.pre.mk>
post-patch:
+ @${REINPLACE_CMD} -e 's|^\(adplug_data_dir.*\)/.*|\1|' \
+ ${WRKSRC}/src/Makefile.in
+
.if ${OSVERSION} > 500000
- ${RM} ${WRKSRC}/src/getopt.h
+ @${RM} ${WRKSRC}/src/getopt.h
.else
- ${CP} ${FILESDIR}/getopt.h ${WRKSRC}/src/
+ @${CP} ${FILESDIR}/getopt.h ${WRKSRC}/src
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/adplay ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/adplay.1 ${MANPREFIX}/man/man1
+ ${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${DISTDIR}/${DBFILE} ${DATADIR}
.include <bsd.port.post.mk>
diff --git a/audio/adplay/distinfo b/audio/adplay/distinfo
index 47941c839ca4..8ca2ad8528ef 100644
--- a/audio/adplay/distinfo
+++ b/audio/adplay/distinfo
@@ -1,3 +1,6 @@
MD5 (adplay-1.5.tar.gz) = 159edf8e4d6290752ab21df8f3dc7f3e
SHA256 (adplay-1.5.tar.gz) = 8124693ebbbc3f99eae36b76fa5fff74aaf09ad66dc40ced17f4502860427fbb
SIZE (adplay-1.5.tar.gz) = 339687
+MD5 (adplug.db) = 5cbd3df5537700f28c350dbe08695c28
+SHA256 (adplug.db) = 7db721bf259b7768556c3ddcb6a704a1093bb01a6373b519b27cdcfd8e88bd32
+SIZE (adplug.db) = 3184