aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/skippy-xd
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2011-12-13 15:37:47 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2011-12-13 15:37:47 +0000
commite4c4f6017be872467ad1fab073fba08aa84a4656 (patch)
tree652d5c2a9b422d54fc9f5877298a07c1f8c90526 /x11-wm/skippy-xd
parent487fb78709047d8c1e1cce6694edea1db20778e0 (diff)
downloadports-e4c4f6017be872467ad1fab073fba08aa84a4656.tar.gz
ports-e4c4f6017be872467ad1fab073fba08aa84a4656.zip
- Fix runtime crash on amd64
- Bump PORTREVISION PR: 163193 Submitted by: Vincent Hoffman-Kazlauskas <vince@unsane.co.uk> Feature safe: yes
Notes
Notes: svn path=/head/; revision=287303
Diffstat (limited to 'x11-wm/skippy-xd')
-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>