mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
- 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)
This commit is contained in:
parent
4ea05a2cba
commit
ac3b1f6ab7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170615
@ -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/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user