2021-01-16 13:43:21 +00:00

44 lines
847 B
Makefile

# $OpenBSD: Makefile,v 1.14 2021/01/16 13:43:21 fcambus Exp $
COMMENT = console-based OPL2 audio player
V = 1.8.1
DISTNAME = adplay-${V}
REVISION = 0
CATEGORIES = audio
HOMEPAGE = https://adplug.github.io/
# GPLv2+
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} SDL2 adplug binio c m samplerate
WANTLIB += sndio usbhid
COMPILER = base-clang ports-gcc base-gcc
MASTER_SITES = https://github.com/adplug/adplay-unix/releases/download/v${V}/
EXTRACT_SUFX = .tar.bz2
LIB_DEPENDS = audio/adplug \
devel/libbinio \
devel/sdl2
CXXFLAGS += -I${LOCALBASE}/include
CXXFLAGS += -I${LOCALBASE}/include/libbinio
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --disable-output-ao \
--disable-output-esound \
--disable-output-oss \
--disable-output-alsa \
--with-sdl=sdl2
post-patch:
rm ${WRKSRC}/src/getopt.h
.include <bsd.port.mk>