2023-01-29 22:14:22 +01:00
|
|
|
# $NetBSD: Makefile,v 1.57 2023/01/29 21:15:28 ryoon Exp $
|
2005-09-27 01:17:32 +02:00
|
|
|
|
2019-06-11 13:54:56 +02:00
|
|
|
DISTNAME= moc-2.5.2
|
2023-01-29 22:14:22 +01:00
|
|
|
PKGREVISION= 18
|
2005-09-27 01:17:32 +02:00
|
|
|
CATEGORIES= audio
|
2013-06-16 15:00:59 +02:00
|
|
|
MASTER_SITES= http://ftp.daper.net/pub/soft/moc/stable/
|
2005-09-27 01:17:32 +02:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
|
|
|
MAINTAINER= peter.schuller@infidyne.com
|
2019-06-11 13:54:56 +02:00
|
|
|
HOMEPAGE= https://moc.daper.net/
|
2005-09-27 01:17:32 +02:00
|
|
|
COMMENT= Curses based console audio player
|
2016-02-16 09:46:01 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
2008-04-07 18:15:24 +02:00
|
|
|
|
2005-09-27 01:17:32 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
USE_LIBTOOL= yes
|
2006-02-12 19:35:55 +01:00
|
|
|
USE_TOOLS+= pkg-config
|
2019-06-11 13:54:56 +02:00
|
|
|
USE_LANGUAGES= c c++
|
2005-09-27 01:17:32 +02:00
|
|
|
|
2019-06-11 13:54:56 +02:00
|
|
|
SUBST_CLASSES+= eq
|
|
|
|
SUBST_STAGE.eq= pre-configure
|
|
|
|
SUBST_FILES.eq= configure
|
|
|
|
SUBST_SED.eq= -e 's," == "," = ",g'
|
|
|
|
SUBST_MESSAGE.eq= Fixing non-portable == in test
|
|
|
|
|
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
|
|
|
|
|
|
|
.if ${OSS_TYPE} != "none"
|
2006-07-04 22:07:04 +02:00
|
|
|
SUBST_CLASSES+= oss
|
2006-01-08 21:14:52 +01:00
|
|
|
SUBST_STAGE.oss= pre-configure
|
2019-06-11 13:54:56 +02:00
|
|
|
SUBST_FILES.oss= config.example.in options.c
|
2006-07-04 22:07:04 +02:00
|
|
|
SUBST_SED.oss= -e s,/dev/dsp,${DEVOSSAUDIO},g
|
2006-01-08 21:14:52 +01:00
|
|
|
SUBST_MESSAGE.oss= Fixing hardcoded audio device.
|
2019-06-11 13:54:56 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OSS_TYPE} == "none"
|
|
|
|
CONFIGURE_ARGS+= --without-oss
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# not in pkgsrc?
|
|
|
|
CONFIGURE_ARGS+= --without-rcc
|
|
|
|
|
|
|
|
# no buildlink?
|
|
|
|
CONFIGURE_ARGS+= --without-timidity
|
|
|
|
|
|
|
|
# if you're one of the two people with music collections in musepack,
|
|
|
|
# want this, and can get it to work, please send a patch
|
|
|
|
CONFIGURE_ARGS+= --without-musepack
|
2006-01-08 21:14:52 +01:00
|
|
|
|
2016-02-16 09:46:01 +01:00
|
|
|
BUILDLINK_TRANSFORM+= l:db:db4
|
|
|
|
|
|
|
|
LDFLAGS.SunOS+= -lsocket
|
|
|
|
|
|
|
|
# ${PREFIX}/bin/mocp contains path to pkg-config in work/.tools/.
|
|
|
|
# It is harmless.
|
|
|
|
CHECK_WRKREF_SKIP= bin/mocp
|
|
|
|
|
|
|
|
.include "options.mk"
|
2005-09-27 01:17:32 +02:00
|
|
|
.include "../../audio/libid3tag/buildlink3.mk"
|
2016-02-16 09:46:01 +01:00
|
|
|
.include "../../databases/db4/buildlink3.mk"
|
2005-09-27 01:17:32 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
2016-02-16 09:46:01 +01:00
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
2019-06-11 13:54:56 +02:00
|
|
|
.include "../../sysutils/file/buildlink3.mk"
|
2016-02-16 09:46:01 +01:00
|
|
|
.include "../../mk/curses.buildlink3.mk"
|
2005-09-27 01:17:32 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|