| @@ -1,47 +1,54 @@ | | | @@ -1,47 +1,54 @@ |
1 | # $NetBSD: Makefile,v 1.16 2011/04/22 13:42:56 obache Exp $ | | 1 | # $NetBSD: Makefile,v 1.17 2012/01/11 19:06:24 hans Exp $ |
2 | | | 2 | |
3 | DISTNAME= moc-2.4.3 | | 3 | DISTNAME= moc-2.4.3 |
4 | PKGREVISION= 3 | | 4 | PKGREVISION= 3 |
5 | CATEGORIES= audio | | 5 | CATEGORIES= audio |
6 | MASTER_SITES= ftp://ftp.daper.net/pub/soft/moc/stable/ | | 6 | MASTER_SITES= ftp://ftp.daper.net/pub/soft/moc/stable/ |
7 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
8 | | | 8 | |
9 | MAINTAINER= peter.schuller@infidyne.com | | 9 | MAINTAINER= peter.schuller@infidyne.com |
10 | HOMEPAGE= http://moc.daper.net/ | | 10 | HOMEPAGE= http://moc.daper.net/ |
11 | COMMENT= Curses based console audio player | | 11 | COMMENT= Curses based console audio player |
12 | | | 12 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 14 | |
15 | CONFLICTS= moc-devel-[0-9]* | | 15 | CONFLICTS= moc-devel-[0-9]* |
16 | | | 16 | |
17 | GNU_CONFIGURE= yes | | 17 | GNU_CONFIGURE= yes |
18 | USE_PKGLOCALEDIR= yes | | 18 | USE_PKGLOCALEDIR= yes |
19 | USE_LIBTOOL= yes | | 19 | USE_LIBTOOL= yes |
20 | USE_NCURSES= yes | | 20 | USE_NCURSES= yes |
21 | USE_TOOLS+= pkg-config | | 21 | USE_TOOLS+= pkg-config |
22 | | | 22 | |
23 | # We require ncurses because with curses arrow key navigation is buggy | | 23 | # We require ncurses because with curses arrow key navigation is buggy |
24 | CONFIGURE_ARGS+= --with-ncurses | | 24 | CONFIGURE_ARGS+= --with-ncurses |
25 | | | 25 | |
26 | SUBST_CLASSES+= oss | | 26 | SUBST_CLASSES+= oss |
27 | SUBST_STAGE.oss= pre-configure | | 27 | SUBST_STAGE.oss= pre-configure |
28 | SUBST_FILES.oss= config.example options.c | | 28 | SUBST_FILES.oss= config.example options.c |
29 | SUBST_SED.oss= -e s,/dev/dsp,${DEVOSSAUDIO},g | | 29 | SUBST_SED.oss= -e s,/dev/dsp,${DEVOSSAUDIO},g |
30 | SUBST_MESSAGE.oss= Fixing hardcoded audio device. | | 30 | SUBST_MESSAGE.oss= Fixing hardcoded audio device. |
31 | | | 31 | |
32 | .include "options.mk" | | 32 | .include "options.mk" |
33 | ### | | 33 | ### |
34 | ### This target is [currently] for regenerating configure to add the | | 34 | ### This target is [currently] for regenerating configure to add the |
35 | ### sched_get_priority_max check of librt. | | 35 | ### sched_get_priority_max check of librt. |
36 | ### | | 36 | ### |
37 | #USE_TOOLS+= autoconf automake | | 37 | #USE_TOOLS+= autoconf automake |
38 | #pre-configure: | | 38 | #pre-configure: |
39 | # cd ${WRKSRC} && autoreconf -v -i | | 39 | # cd ${WRKSRC} && autoreconf -v -i |
40 | | | 40 | |
| | | 41 | .include "../../mk/bsd.prefs.mk" |
| | | 42 | .if ${OPSYS} == "SunOS" |
| | | 43 | BUILDLINK_TRANSFORM+= rm:-Wl,--export-dynamic |
| | | 44 | .endif |
| | | 45 | |
| | | 46 | LIBS.SunOS+= -lsocket |
| | | 47 | |
41 | .include "../../audio/libid3tag/buildlink3.mk" | | 48 | .include "../../audio/libid3tag/buildlink3.mk" |
42 | .include "../../audio/libmad/buildlink3.mk" | | 49 | .include "../../audio/libmad/buildlink3.mk" |
43 | .include "../../devel/gettext-lib/buildlink3.mk" | | 50 | .include "../../devel/gettext-lib/buildlink3.mk" |
44 | .include "../../devel/ncurses/buildlink3.mk" | | 51 | .include "../../devel/ncurses/buildlink3.mk" |
45 | .include "../../mk/oss.buildlink3.mk" | | 52 | .include "../../mk/oss.buildlink3.mk" |
46 | .include "../../mk/pthread.buildlink3.mk" | | 53 | .include "../../mk/pthread.buildlink3.mk" |
47 | .include "../../mk/bsd.pkg.mk" | | 54 | .include "../../mk/bsd.pkg.mk" |