summaryrefslogtreecommitdiff
path: root/wm
diff options
context:
space:
mode:
authorjperkin <jperkin>2013-10-29 11:13:32 +0000
committerjperkin <jperkin>2013-10-29 11:13:32 +0000
commitd43c11caf456e87c19d94f0c16105369e2aafe9e (patch)
treeff4c8603a7b31d331bdce7901ad18988a83a18c6 /wm
parent57d5701b303285c157a039a7413491777068c737 (diff)
downloadpkgsrc-d43c11caf456e87c19d94f0c16105369e2aafe9e.tar.gz
USE_LANGUAGES=c99 and fix linker arguments to fix build on SunOS.
Diffstat (limited to 'wm')
-rw-r--r--wm/notion/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/wm/notion/Makefile b/wm/notion/Makefile
index bc0fad343ef..4dc966b635d 100644
--- a/wm/notion/Makefile
+++ b/wm/notion/Makefile
@@ -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 @@ LICENSE= ion-license AND gnu-lgpl-v2.1
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 @@ INSTALLATION_DIRS= ${EGDIR}
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}