summaryrefslogtreecommitdiff
path: root/x11/bbapm/Makefile
diff options
context:
space:
mode:
authorjschauma <jschauma>2002-09-08 00:03:56 +0000
committerjschauma <jschauma>2002-09-08 00:03:56 +0000
commit2585fea936f74816ba8fdb1366cc02d6138e67c0 (patch)
treed0473176ca739dc800a536dc33721239a2ec37ab /x11/bbapm/Makefile
parent6bf4c94e0e2021e532ed226511cb341182289ba5 (diff)
downloadpkgsrc-2585fea936f74816ba8fdb1366cc02d6138e67c0.tar.gz
For this to work nicely on Linux, we need to:
- add -lapm to LDFLAGS (which was removed during patching) - ifdef our own net_apm.cc (created during patching) - change ONLY_FOR_PLATFORMS from ... Linux-*-i[3-6]86 to ... Linux-*-* (all Linuxen should have include/apm.h)
Diffstat (limited to 'x11/bbapm/Makefile')
-rw-r--r--x11/bbapm/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/x11/bbapm/Makefile b/x11/bbapm/Makefile
index f5ecad78b7a..454d78b15cc 100644
--- a/x11/bbapm/Makefile
+++ b/x11/bbapm/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2002/09/07 20:46:35 jschauma Exp $
+# $NetBSD: Makefile,v 1.3 2002/09/08 00:03:56 jschauma Exp $
# based on
# FreeBSD port:
# ID: ports/x11-wm/bbapm/Makefile,v 1.5 2002/09/02 01:30:15 lioux Exp
@@ -20,7 +20,7 @@ LDFLAGS+= -Wl,-R${X11BASE}/lib
# We use i386/apmvar.h; other architectures will require modification
# of the patches, probably something like ${MACHINE_ARCH}/apmvar.h in
# patch-ak
-ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i[3-6]86
+ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-*
post-patch:
${SED} -e 's,@PREFIX@,${PREFIX},' ${WRKSRC}/data/bbapm.1.tmp > \
@@ -35,3 +35,7 @@ do-install:
.endfor
.include "../../mk/bsd.pkg.mk"
+
+.if ${OPSYS} == "Linux"
+LDFLAGS+= -lapm
+.endif