freebsd-ports/x11-wm/jwm/Makefile
Jean-Yves Lefort 10a97f6e28 - Remove vendor optimizations from CFLAGS [1]
- Preserve configuration file modifications across updates
- Substitute %%PREFIX%% in the configuration file
- Add missing dependency on libpng
- Use GNU_CONFIGURE
- Remove CONFIGURE_ARGS (the passed options are the defaults)
- Respect ${LOCALBASE} and ${X11BASE}

[1]:
PR:		ports/91927
Submitted by:	maintainer
2006-01-18 02:30:49 +00:00

42 lines
1.1 KiB
Makefile

# New ports collection makefile for: jwm
# Date created: 26 DEC 2005
# Whom: babak@farrokhi.net
#
# $FreeBSD$
#
PORTNAME= jwm
PORTVERSION= 1.3
CATEGORIES= x11-wm
MASTER_SITES= http://joewing.net/programs/jwm/ \
http://bsdgeek.no-ip.org/jwm/
MAINTAINER= babak@farrokhi.net
COMMENT= Joe's Window Manager
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_X_PREFIX= yes
USE_XPM= yes
GNU_CONFIGURE= yes
USE_BZIP2= yes
USE_REINPLACE= yes
CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib"
MAN1= jwm.1
post-patch:
@${REINPLACE_CMD} -e 's|-O2||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${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; \
fi
${INSTALL_MAN} ${WRKSRC}/jwm.1 ${MANPREFIX}/man/man1/
.include <bsd.port.mk>