blob: 8aeac17ca42ffd66abfa673f6b753c0eab23f37b (
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
55
56
57
58
59
|
# New ports collection makefile for: adplay
# Date created: 10 August 2004
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
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
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
.else
@${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>
|