Import audio/clementine-player version 1.2.1_7
[dports.git] / audio / libadplug / Makefile
1 # Created by: Emanuel Haupt <ehaupt@critical.ch>
2 # $FreeBSD$
3
4 PORTNAME=       libadplug
5 PORTVERSION=    2.2.1
6 CATEGORIES=     audio
7 MASTER_SITES=   SF/adplug/AdPlug%20core%20library/${PORTVERSION}
8 DISTNAME=       adplug-${PORTVERSION}
9
10 MAINTAINER=     ehaupt@FreeBSD.org
11 COMMENT=        AdLib emulator library supporting many formats
12
13 LICENSE=        GPLv2
14
15 LIB_DEPENDS=    libbinio.so:${PORTSDIR}/devel/libbinio
16
17 USES=           pkgconfig
18 USE_AUTOTOOLS=  libtool
19 GNU_CONFIGURE=  yes
20 USE_LDCONFIG=   yes
21 USE_CSTD=       gnu89
22
23 CPPFLAGS+=      -I${LOCALBASE}/include
24
25 INFO=           libadplug
26
27 post-patch:
28         @${REINPLACE_CMD} -E 's#<(binfile.h|binio.h|binstr.h)>#<libbinio/\1>#' \
29                 ${WRKSRC}/adplugdb/adplugdb.cpp \
30                 ${WRKSRC}/src/adplug.cpp \
31                 ${WRKSRC}/src/fprovide.cpp \
32                 ${WRKSRC}/src/database.cpp \
33                 ${WRKSRC}/src/rix.cpp \
34                 ${WRKSRC}/src/fprovide.h \
35                 ${WRKSRC}/src/database.h \
36                 ${WRKSRC}/src/fprovide.cpp \
37                 ${WRKSRC}/src/database.cpp \
38                 ${WRKSRC}/src/dmo.cpp
39         @${REINPLACE_CMD} -e 's|^\(pkgconfigdir\ =\).*|\1 $$(prefix)/libdata/pkgconfig|' \
40                 ${WRKSRC}/Makefile.in \
41                 ${WRKSRC}/Makefile.am
42         @${REINPLACE_CMD} -e 's/-lstdc++//g' ${WRKSRC}/configure
43
44 .include <bsd.port.mk>