1 # Created by: Emanuel Haupt <ehaupt@critical.ch>
7 MASTER_SITES= SF/adplug/AdPlug%20core%20library/${PORTVERSION}
8 DISTNAME= adplug-${PORTVERSION}
10 MAINTAINER= ehaupt@FreeBSD.org
11 COMMENT= AdLib emulator library supporting many formats
15 LIB_DEPENDS= libbinio.so:${PORTSDIR}/devel/libbinio
18 USE_AUTOTOOLS= libtool
23 CPPFLAGS+= -I${LOCALBASE}/include
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 \
39 @${REINPLACE_CMD} -e 's|^\(pkgconfigdir\ =\).*|\1 $$(prefix)/libdata/pkgconfig|' \
40 ${WRKSRC}/Makefile.in \
42 @${REINPLACE_CMD} -e 's/-lstdc++//g' ${WRKSRC}/configure
44 .include <bsd.port.mk>