summaryrefslogtreecommitdiff
path: root/wm/ctwm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'wm/ctwm/Makefile')
-rw-r--r--wm/ctwm/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/wm/ctwm/Makefile b/wm/ctwm/Makefile
index b7472b4717f..368c1154470 100644
--- a/wm/ctwm/Makefile
+++ b/wm/ctwm/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.15 2005/10/06 17:28:41 reed Exp $
+# $NetBSD: Makefile,v 1.16 2005/10/13 20:20:55 rillig Exp $
#
DISTNAME= ctwm-3.7
+PKGREVISION= 1
CATEGORIES= x11 wm
MASTER_SITES= http://ctwm.free.lp.se/dist/
@@ -12,8 +13,22 @@ COMMENT= Window manager with support for multiple virtual screens and Gnome 1.x
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_IMAKE= YES
+.include "../../mk/bsd.prefs.mk"
+
+# The Solaris m4 does not understand the -s option.
+.if ${OPSYS} == "SunOS"
+USE_TOOLS+= gm4:run
+EXTRA_DEFINES+= -DPATH_TO_M4=\"${TOOLS_PATH.gm4:Q}\"
+# The __EXTENSIONS__ is needed for sigjmp_buf.
+EXTRA_DEFINES+= -D__EXTENSIONS__
+.else
+USE_TOOLS+= m4:run
+EXTRA_DEFINES+= -DPATH_TO_M4=\"${TOOLS_PATH.m4:Q}\"
+.endif
+MAKE_ENV+= EXTRA_DEFINES=${EXTRA_DEFINES:Q}
+
pre-configure:
- ( ${ECHO} 'USER_JPEGLIBDIR = -L${BUILDLINK_PREFIX.jpeg}/lib -Wl,-rpath,${BUILDLINK_PREFIX.jpeg}/lib'; \
+ ( ${ECHO} 'USER_JPEGLIBDIR = -L${BUILDLINK_PREFIX.jpeg}/lib ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.jpeg}/lib'; \
${ECHO} 'USER_JPEGINCDIR = -I${BUILDLINK_PREFIX.jpeg}/include'; \
${CAT} ${WRKSRC}/Imakefile.local-template; \
) >${WRKSRC}/Imakefile.local