diff options
author | jperkin <jperkin@pkgsrc.org> | 2013-10-29 11:13:32 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2013-10-29 11:13:32 +0000 |
commit | bf219d80c38beb023b73cad9bf673e6b52c43b2c (patch) | |
tree | ff4c8603a7b31d331bdce7901ad18988a83a18c6 /wm | |
parent | 5379944dc591956329c0b4ef48ab2ac80c4516bf (diff) | |
download | pkgsrc-bf219d80c38beb023b73cad9bf673e6b52c43b2c.tar.gz |
USE_LANGUAGES=c99 and fix linker arguments to fix build on SunOS.
Diffstat (limited to 'wm')
-rw-r--r-- | wm/notion/Makefile | 12 |
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} |