freebsd-ports/audio/adplay/Makefile
Dmitry Marakasov 7cffd3c8f9 Remove support for WANT_SDL/HAVE_SDL knobs
WANT_SDL/HAVE_SDL macros allowed a port to check which SDL components
are installed. This goes against the policy of avoiding automatic
dependencies, and there are actually no cases in the portstree where
these knobs are used properly, so axe them out.

Approved by:	portmgr (mat)
Differential Revision:	D4093
2015-11-09 14:30:02 +00:00

50 lines
1.3 KiB
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= adplay
PORTVERSION= 1.7
PORTREVISION= 7
CATEGORIES= audio
MASTER_SITES= SF/adplug/AdPlay_UNIX/${PORTVERSION}:main \
SF/adplug/Database/2006-07-06:db
DISTFILES= ${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${EXTRACT_SUFX}:main \
adplugdb-${DBVERSION}${EXTRACT_SUFX}:db
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= AdLib player using adplug library
LICENSE= GPLv2
LIB_DEPENDS= libadplug.so:${PORTSDIR}/audio/libadplug \
libbinio.so:${PORTSDIR}/devel/libbinio
GNU_CONFIGURE= yes
USES= libtool
DBFILE= adplug.db
DBVERSION= 2006-07-07
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libbinio
LIBS+= -L${LOCALBASE}/lib -lbinio
CONFIGURE_ARGS+= --sharedstatedir=${DATADIR}
PLIST_FILES= bin/adplay %%DATADIR%%/adplug.db man/man1/adplay.1.gz
OPTIONS_DEFINE= SDL
SDL_CONFIGURE_OFF= --disable-output-sdl
SDL_USE= SDL=sdl,mixer
post-patch:
@${REINPLACE_CMD} -e 's/-lstdc++//g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|^\(adplug_data_dir.*\)/.*|\1|' \
${WRKSRC}/src/Makefile.in
@${RM} ${WRKSRC}/src/getopt.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/adplay ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/adplay.1 ${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKDIR}/${DBVERSION}/${DBFILE} ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>