aboutsummaryrefslogtreecommitdiffstats
path: root/x11-wm/jwm
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2006-08-15 00:57:38 +0800
committerrafan <rafan@FreeBSD.org>2006-08-15 00:57:38 +0800
commitdfc94c6dce14ed0a7ee83de86101ac0639a456af (patch)
treecb0c094f5a58d197ab7637536905fa589d22a8d5 /x11-wm/jwm
parent68de2a5a940e4205b5caa0be6a88bb2f52b55775 (diff)
downloadfreebsd-ports-gnome-dfc94c6dce14ed0a7ee83de86101ac0639a456af.tar.gz
freebsd-ports-gnome-dfc94c6dce14ed0a7ee83de86101ac0639a456af.tar.zst
freebsd-ports-gnome-dfc94c6dce14ed0a7ee83de86101ac0639a456af.zip
- Unbreak on 4.x (use GCC 3.4+)
- Respect DESTDIR - Add new MASTERSITES PR: ports/101997 Submitted by: Babak Farrokhi <babak at farrokhi.net> (maintainer)
Diffstat (limited to 'x11-wm/jwm')
-rw-r--r--x11-wm/jwm/Makefile20
1 files changed, 9 insertions, 11 deletions
diff --git a/x11-wm/jwm/Makefile b/x11-wm/jwm/Makefile
index 86c2a5defd12..08afbd357418 100644
--- a/x11-wm/jwm/Makefile
+++ b/x11-wm/jwm/Makefile
@@ -8,8 +8,9 @@
PORTNAME= jwm
PORTVERSION= 1.7
CATEGORIES= x11-wm
-MASTER_SITES= http://joewing.net/programs/jwm/ \
- http://www.unixified.net/distfiles/
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
+ http://joewing.net/programs/
+MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= babak@farrokhi.net
COMMENT= Joe's Window Manager
@@ -20,6 +21,7 @@ USE_X_PREFIX= yes
USE_XPM= yes
GNU_CONFIGURE= yes
USE_BZIP2= yes
+USE_GCC= 3.4+
CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
@@ -28,19 +30,15 @@ MAN1= jwm.1
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 500000
-BROKEN= Does not compile
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/example.jwmrc
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${TARGETDIR}|' ${WRKSRC}/example.jwmrc
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/jwm ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/example.jwmrc ${PREFIX}/etc/system.jwmrc.sample
- if ! [ -f ${PREFIX}/etc/system.jwmrc ]; then \
- ${INSTALL_DATA} ${WRKSRC}/example.jwmrc ${PREFIX}/etc/system.jwmrc; \
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/jwm ${TARGETDIR}/bin
+ ${INSTALL_DATA} ${WRKSRC}/example.jwmrc ${TARGETDIR}/etc/system.jwmrc.sample
+ if ! [ -f ${TARGETDIR}/etc/system.jwmrc ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/example.jwmrc ${TARGETDIR}/etc/system.jwmrc; \
fi
${INSTALL_MAN} ${WRKSRC}/jwm.1 ${MANPREFIX}/man/man1/