1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00
freebsd-ports/audio/adplay/Makefile
Piotr Kubaj c465c849a5 audio/adplay: fix build on GCC architectures
Use C++11 compiler:
/usr/local/lib/libadplug.so: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append(char const*)@GLIBCXX_3.4.21'

MFH:		2020Q3 (fix build blanket)
2020-07-08 10:50:02 +00:00

56 lines
1.2 KiB
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= adplay
PORTVERSION= 1.8.1
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= audio
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= AdLib player using adplug library
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libadplug.so:audio/libadplug \
libbinio.so:devel/libbinio
USES= autoreconf compiler:c++11-lang libtool pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= adplug
GH_PROJECT= ${PORTNAME}-unix
GH_TUPLE= adplug:database:${DBVERSION}:database/database-${DBVERSION}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sharedstatedir=${DATADIR}
PLIST_FILES= ${DATADIR}/adplug.db \
bin/adplay \
man/man1/adplay.1.gz
OPTIONS_DEFINE= ALSA SDL
ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib
ALSA_CONFIGURE_OFF= --disable-output-alsa
ALSA_CONFIGURE_WITH= alsa-prefix=${LOCALBASE}/lib
ALSA_CFLAGS+= `pkg-config --cflags alsa`
SDL_USES= sdl
SDL_USE= SDL=mixer,sdl
SDL_CONFIGURE_OFF= --disable-output-sdl
DBFILE= adplug.db
DBVERSION= v1.0
post-patch:
@${RM} ${WRKSRC}/src/getopt.h
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/database-${DBVERSION}/${DBFILE} \
${STAGEDIR}${DATADIR}
.include <bsd.port.mk>