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