Use the curses framework.diff -r1.29 -r1.30 pkgsrc/audio/herrie/Makefile
(roy)
@@ -1,49 +1,54 @@ | @@ -1,49 +1,54 @@ | |||
1 | # $NetBSD: Makefile,v 1.29 2017/01/01 16:06:03 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.30 2017/01/04 16:47:59 roy Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= herrie-2.2 | 4 | DISTNAME= herrie-2.2 | |
5 | PKGREVISION= 14 | 5 | PKGREVISION= 15 | |
6 | CATEGORIES= audio | 6 | CATEGORIES= audio | |
7 | MASTER_SITES= http://herrie.info/distfiles/ | 7 | MASTER_SITES= http://herrie.info/distfiles/ | |
8 | EXTRACT_SUFX= .tar.bz2 | 8 | EXTRACT_SUFX= .tar.bz2 | |
9 | 9 | |||
10 | MAINTAINER= pkgsrc-users@NetBSD.org | 10 | MAINTAINER= pkgsrc-users@NetBSD.org | |
11 | HOMEPAGE= http://herrie.info/ | 11 | HOMEPAGE= http://herrie.info/ | |
12 | COMMENT= Minimalistic, ncurses-based audio player | 12 | COMMENT= Minimalistic, ncurses-based audio player | |
13 | LICENSE= 2-clause-bsd AND gnu-gpl-v2 | 13 | LICENSE= 2-clause-bsd AND gnu-gpl-v2 | |
14 | 14 | |||
15 | HAS_CONFIGURE= yes | 15 | HAS_CONFIGURE= yes | |
16 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
17 | USE_TOOLS+= gmake msgfmt pkg-config | 17 | USE_TOOLS+= gmake msgfmt pkg-config | |
18 | USE_PKGLOCALEDIR= yes | 18 | USE_PKGLOCALEDIR= yes | |
19 | 19 | |||
20 | CONFIGURE_ARGS+= verbose | 20 | CONFIGURE_ARGS+= verbose | |
21 | 21 | |||
22 | EGDIR= ${PREFIX}/share/examples/herrie | 22 | EGDIR= ${PREFIX}/share/examples/herrie | |
23 | CONF_FILES= ${EGDIR}/herrie.conf ${PKG_SYSCONFDIR}/herrie.conf | 23 | CONF_FILES= ${EGDIR}/herrie.conf ${PKG_SYSCONFDIR}/herrie.conf | |
24 | 24 | |||
25 | CONFIGURE_ENV+= CONFDIR=${PKG_SYSCONFDIR} | 25 | CONFIGURE_ENV+= CONFDIR=${PKG_SYSCONFDIR} | |
26 | CONFIGURE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR} | 26 | CONFIGURE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR} | |
27 | CONFIGURE_ENV+= TRANSDIR=${PREFIX}/${PKGLOCALEDIR}/locale | 27 | CONFIGURE_ENV+= TRANSDIR=${PREFIX}/${PKGLOCALEDIR}/locale | |
28 | 28 | |||
29 | RESOLV_AUTO_VARS= yes | 29 | RESOLV_AUTO_VARS= yes | |
30 | USE_FEATURES= snprintf regcomp | 30 | USE_FEATURES= snprintf regcomp | |
31 | USE_NCURSES= yes | |||
32 | 31 | |||
33 | AUTO_MKDIRS= yes | 32 | AUTO_MKDIRS= yes | |
34 | 33 | |||
34 | FAKE_NCURSES= yes | |||
35 | ||||
35 | .include "options.mk" | 36 | .include "options.mk" | |
36 | 37 | |||
38 | .if ${CURSES_TYPE} != "ncursesw" | |||
39 | CONFIGURE_ARGS+= ncurses | |||
40 | .endif | |||
41 | ||||
37 | SUBST_CLASSES+= conf | 42 | SUBST_CLASSES+= conf | |
38 | SUBST_STAGE.conf= pre-configure | 43 | SUBST_STAGE.conf= pre-configure | |
39 | SUBST_FILES.conf= ${WRKDIR}/herrie.conf | 44 | SUBST_FILES.conf= ${WRKDIR}/herrie.conf | |
40 | SUBST_MESSAGE.conf= Preparing example configuration file. | 45 | SUBST_MESSAGE.conf= Preparing example configuration file. | |
41 | SUBST_VARS.conf= DEVOSSAUDIO HERRIE_USE_OSS | 46 | SUBST_VARS.conf= DEVOSSAUDIO HERRIE_USE_OSS | |
42 | 47 | |||
43 | post-extract: | 48 | post-extract: | |
44 | ${RUN} ${CP} ${FILESDIR}/herrie.conf ${WRKDIR} | 49 | ${RUN} ${CP} ${FILESDIR}/herrie.conf ${WRKDIR} | |
45 | 50 | |||
46 | post-install: | 51 | post-install: | |
47 | ${RUN} ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} && \ | 52 | ${RUN} ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR} && \ | |
48 | ${INSTALL_DATA} ${WRKDIR}/herrie.conf ${DESTDIR}${EGDIR} | 53 | ${INSTALL_DATA} ${WRKDIR}/herrie.conf ${DESTDIR}${EGDIR} | |
49 | 54 |
@@ -1,21 +1,22 @@ | @@ -1,21 +1,22 @@ | |||
1 | # $NetBSD: options.mk,v 1.8 2016/07/10 09:42:07 rillig Exp $ | 1 | # $NetBSD: options.mk,v 1.9 2017/01/04 16:47:59 roy Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.herrie | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.herrie | |
4 | PKG_SUPPORTED_OPTIONS= curl libao modplug libspiff sndfile \ | 4 | PKG_SUPPORTED_OPTIONS= curl libao modplug libspiff sndfile \ | |
5 | vorbis wide-curses | 5 | vorbis wide-curses | |
6 | PKG_SUGGESTED_OPTIONS= curl | 6 | PKG_SUGGESTED_OPTIONS= curl | |
7 | PKG_OPTIONS_LEGACY_OPTS+= ncursesw:wide-curses | 7 | PKG_OPTIONS_LEGACY_OPTS+= ncursesw:wide-curses | |
8 | 8 | |||
9 | .include "../../mk/curses.buildlink3.mk" | |||
9 | .include "../../mk/oss.buildlink3.mk" | 10 | .include "../../mk/oss.buildlink3.mk" | |
10 | 11 | |||
11 | .if ${OSS_TYPE} == "native" | 12 | .if ${OSS_TYPE} == "native" | |
12 | PKG_SUPPORTED_OPTIONS+= oss | 13 | PKG_SUPPORTED_OPTIONS+= oss | |
13 | PKG_SUGGESTED_OPTIONS+= oss | 14 | PKG_SUGGESTED_OPTIONS+= oss | |
14 | .elif ${OSS_TYPE} == "none" | 15 | .elif ${OSS_TYPE} == "none" | |
15 | PKG_SUGGESTED_OPTIONS+= libao | 16 | PKG_SUGGESTED_OPTIONS+= libao | |
16 | .endif | 17 | .endif | |
17 | 18 | |||
18 | .include "../../mk/bsd.fast.prefs.mk" | 19 | .include "../../mk/bsd.fast.prefs.mk" | |
19 | .include "../../mk/bsd.options.mk" | 20 | .include "../../mk/bsd.options.mk" | |
20 | 21 | |||
21 | .if !empty(PKG_OPTIONS:Mcurl) | 22 | .if !empty(PKG_OPTIONS:Mcurl) | |
@@ -55,20 +56,13 @@ HERRIE_USE_OSS= \# | @@ -55,20 +56,13 @@ HERRIE_USE_OSS= \# | |||
55 | .else | 56 | .else | |
56 | CONFIGURE_ARGS+= no_sndfile | 57 | CONFIGURE_ARGS+= no_sndfile | |
57 | .endif | 58 | .endif | |
58 | 59 | |||
59 | .if !empty(PKG_OPTIONS:Mdebug) | 60 | .if !empty(PKG_OPTIONS:Mdebug) | |
60 | CONFIGURE_ARGS+= no_strip strict | 61 | CONFIGURE_ARGS+= no_strip strict | |
61 | .endif | 62 | .endif | |
62 | 63 | |||
63 | .if !empty(PKG_OPTIONS:Mvorbis) | 64 | .if !empty(PKG_OPTIONS:Mvorbis) | |
64 | . include "../../audio/libvorbis/buildlink3.mk" | 65 | . include "../../audio/libvorbis/buildlink3.mk" | |
65 | .else | 66 | .else | |
66 | CONFIGURE_ARGS+= no_vorbis | 67 | CONFIGURE_ARGS+= no_vorbis | |
67 | .endif | 68 | .endif | |
68 | ||||
69 | .if !empty(PKG_OPTIONS:Mwide-curses) | |||
70 | . include "../../devel/ncursesw/buildlink3.mk" | |||
71 | .else | |||
72 | CONFIGURE_ARGS+= ncurses | |||
73 | . include "../../devel/ncurses/buildlink3.mk" | |||
74 | .endif |