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