aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm
diff options
context:
space:
mode:
authornovel <novel@FreeBSD.org>2011-12-13 23:37:47 +0800
committernovel <novel@FreeBSD.org>2011-12-13 23:37:47 +0800
commit0940e61aff115652c5bfc43d31c3bce2fbbeff92 (patch)
tree6f90252935c6a9217c6d5a753d82fb00d2af5ae9 /x11-wm
parent3365c15c501d6067c92539500cf4c227c54bfa59 (diff)
downloadfreebsd-ports-gnome-0940e61aff115652c5bfc43d31c3bce2fbbeff92.tar.gz
freebsd-ports-gnome-0940e61aff115652c5bfc43d31c3bce2fbbeff92.tar.zst
freebsd-ports-gnome-0940e61aff115652c5bfc43d31c3bce2fbbeff92.zip
- Fix runtime crash on amd64
- Bump PORTREVISION PR: 163193 Submitted by: Vincent Hoffman-Kazlauskas <vince@unsane.co.uk> Feature safe: yes
Diffstat (limited to 'x11-wm')
-rw-r--r--x11-wm/skippy-xd/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/x11-wm/skippy-xd/Makefile b/x11-wm/skippy-xd/Makefile
index e896e74a952e..73c0ae9b92f8 100644
--- a/x11-wm/skippy-xd/Makefile
+++ b/x11-wm/skippy-xd/Makefile
@@ -7,7 +7,7 @@
PORTNAME= skippy-xd
PORTVERSION= 0.5.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11-wm
MASTER_SITES= http://cdn.thegraveyard.org/releases/skippy/
@@ -24,10 +24,19 @@ PLIST_FILES= bin/skippy-xd \
PLIST_DIRS= %%DATADIR%%
PKGMESSAGE= ${WRKDIR}/pkg-message
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|; \
s|/usr/local|${LOCALBASE}|; s|gcc|${CC}|' \
${WRKSRC}/Makefile
+
+.if ${ARCH} == "amd64"
+ @${REINPLACE_CMD} -e 's|CARD32|CARD64|g' \
+ ${WRKSRC}/clientwin.c ${WRKSRC}/skippy.c \
+ ${WRKSRC}/wm.c ${WRKSRC}/wm.h
+.endif
+
post-build:
@${SED} 's|%%DATADIR%%|${DATADIR}|' ${PKGDIR}/pkg-message >${PKGMESSAGE}
@@ -39,4 +48,4 @@ do-install:
post-install:
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>