pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/wm/notion USE_LANGUAGES=c99 and fix linker arguments t...
details: https://anonhg.NetBSD.org/pkgsrc/rev/dd4bf30bc27a
branches: trunk
changeset: 625976:dd4bf30bc27a
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Tue Oct 29 11:13:32 2013 +0000
description:
USE_LANGUAGES=c99 and fix linker arguments to fix build on SunOS.
diffstat:
wm/notion/Makefile | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r c25c1825efff -r dd4bf30bc27a wm/notion/Makefile
--- a/wm/notion/Makefile Tue Oct 29 10:54:38 2013 +0000
+++ b/wm/notion/Makefile Tue Oct 29 11:13:32 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2013/10/18 11:41:18 bsiegert Exp $
+# $NetBSD: Makefile,v 1.13 2013/10/29 11:13:32 jperkin Exp $
DISTNAME= notion-3-2013030200-src
PKGNAME= ${DISTNAME:S/3-/3./:S/-src//}
@@ -15,6 +15,7 @@
CONFLICTS= ion3-[0-9]*
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
+USE_LANGUAGES= c99
USE_TOOLS+= gmake msgfmt pax pkg-config
MAKE_FLAGS+= X11_PREFIX=${BUILDLINK_PREFIX.libX11}
@@ -52,6 +53,15 @@
CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+# Abuse buildlink to add required libraries.
+BUILDLINK_TRANSFORM+= opt:-Wl,--as-needed:-lsocket
+BUILDLINK_TRANSFORM+= rm:-Wl,-whole-archive
+BUILDLINK_TRANSFORM+= rm:-Wl,-no-whole-archive
+.endif
+
post-install:
cd ${WRKSRC} && pax -rw contrib ${DESTDIR}${EGDIR}
Home |
Main Index |
Thread Index |
Old Index