blob: 2eabfd4b9eb095d388585592911da2e8a3918cb9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= adplay
PORTVERSION= 1.7
PORTREVISION= 4
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
LIB_DEPENDS= adplug:${PORTSDIR}/audio/libadplug
GNU_CONFIGURE= yes
WANT_SDL= yes
DBFILE= adplug.db
DBVERSION= 2006-07-07
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libbinio
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --sharedstatedir=${DATADIR}
PLIST_FILES= bin/adplay %%DATADIR%%/adplug.db man/man1/adplay.1.gz
PLIST_DIRS= %%DATADIR%%
OPTIONS_DEFINE= SDL
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MSDL}
USE_SDL= sdl mixer
.else
CONFIGURE_ARGS+= --disable-output-sdl
.endif
post-patch:
@${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
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKDIR}/${DBVERSION}/${DBFILE} ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>
|