blob: 9ec4a681cb5f2dde2bebe3a429514785bb7dfb4a (
plain)
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
|
# Created by: Emanuel Haupt <ehaupt@critical.ch>
PORTNAME= adplay
PORTVERSION= 1.8.1
DISTVERSIONPREFIX= v
PORTREVISION= 2
CATEGORIES= audio
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 compiler:c++11-lang libtool pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= adplug
GH_PROJECT= ${PORTNAME}-unix
GH_TUPLE= adplug:database:${DBVERSION}:database/database-${DBVERSION}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sharedstatedir=${DATADIR}
PLIST_FILES= ${DATADIR}/adplug/adplug.db \
bin/adplay \
man/man1/adplay.1.gz
OPTIONS_DEFINE= ALSA SDL
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_CONFIGURE_OFF= --disable-output-alsa
ALSA_CONFIGURE_WITH= alsa-prefix=${LOCALBASE}/lib
ALSA_CFLAGS+= `pkg-config --cflags alsa`
SDL_USES= sdl
SDL_USE= SDL=mixer,sdl
SDL_CONFIGURE_OFF= --disable-output-sdl
DBFILE= adplug.db
DBVERSION= v1.0
post-patch:
@${RM} ${WRKSRC}/src/getopt.h
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/adplug
${INSTALL_DATA} ${WRKSRC}/database-${DBVERSION}/${DBFILE} \
${STAGEDIR}${DATADIR}/adplug
.include <bsd.port.mk>
|