pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/gmodplay Make gmodplay build and run in Linux.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8bf01e24160d
branches:  trunk
changeset: 473285:8bf01e24160d
user:      ben <ben%pkgsrc.org@localhost>
date:      Sun Apr 18 14:34:19 2004 +0000

description:
Make gmodplay build and run in Linux.

diffstat:

 audio/gmodplay/Makefile |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 04ee0c22f9b6 -r 8bf01e24160d audio/gmodplay/Makefile
--- a/audio/gmodplay/Makefile   Sun Apr 18 14:02:35 2004 +0000
+++ b/audio/gmodplay/Makefile   Sun Apr 18 14:34:19 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2004/04/18 00:49:02 ben Exp $
+# $NetBSD: Makefile,v 1.17 2004/04/18 14:34:19 ben Exp $
 
 DISTNAME=      gmodplay-0.08
 PKGREVISION=   3
@@ -21,7 +21,17 @@
 
 # for libslang and ossaudio
 CFLAGS+=       -DAUDIO_DEV="\"\\\"$(DEVOSSAUDIO)\\\"\""
-LDFLAGS+=      ${LIBOSSAUDIO} -lcurses
+LDFLAGS+=      ${LIBOSSAUDIO}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+LDFLAGS+=      -lcurses
+.endif
+
+.if ${OPSYS} == "Linux"
+LDFLAGS+=      -lncurses -ldl
+.endif
 
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/gmodplay ${PREFIX}/bin/gmodplay



Home | Main Index | Thread Index | Old Index