1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/x11-wm/alloywm/Makefile

70 lines
1.8 KiB
Makefile
Raw Normal View History

2002-01-22 23:40:03 +00:00
# New ports collection makefile for: alloywm
# Date created: 2002-01-20
# Whom: trevor
#
# $FreeBSD$
#
PORTNAME= alloywm
PORTVERSION= 0.4.0
CATEGORIES= x11-wm
MASTER_SITES= http://www.phatboydesigns.net/devel/
MAINTAINER= trevor@FreeBSD.org
HAS_CONFIGURE= yes
PLIST= ${WRKDIR}/pkg-plist
USE_GMAKE= yes
2002-01-22 23:40:03 +00:00
USE_X_PREFIX= yes
USE_GNOMENG= yes
WANT_GNOME= yes
2002-09-25 14:42:29 +00:00
USE_REINPLACE= yes
REINPLACE_ARGS= -i'' -E
2002-01-22 23:40:03 +00:00
SCRIPTS= ${WRKSRC}/scriptdir
pre-configure:
${FIND} ${WRKSRC} \( -name '*.in' -or -name configure \) -exec \
2002-09-25 14:42:29 +00:00
${REINPLACE_CMD} 's:bash:sh:g ; \
2002-01-22 23:40:03 +00:00
s:gtk-config:${GTK_CONFIG}:g' {} \;
${RM} -f ${WRKSRC}/*/Makefile
${CHMOD} +x ${WRKSRC}/configure
do-build:
cd ${WRKSRC}/goodies && ${GMAKE}
.for ii in client events main misc new screen widgets
cd ${WRKSRC}/src && ${CC} -c ${CFLAGS} -I${X11BASE}/include \
${ii}.c
.endfor
cd ${WRKSRC}/src && ${CC} ${CFLAGS} -DSHAPE -o alloywm \
-L${X11BASE}/lib -lXext -lX11 \
client.o events.o main.o misc.o new.o screen.o widgets.o
2002-01-22 23:40:03 +00:00
pre-install:
cd ${WRKSRC} && ${FIND} * -type f -perm 755 | cut -f 2 -d / | \
2002-09-25 14:42:29 +00:00
${SED} "s:^:bin/:g" > ${PLIST}
2002-01-22 23:40:03 +00:00
${FIND} ${SCRIPTS} \! -name '*in' -type f | \
2002-09-25 14:42:29 +00:00
${SED} "s:^${SCRIPTS}:bin:g" >> ${PLIST}
.if !defined(NOPORTDOCS)
.for i in Changelog README
${ECHO_CMD} share/doc/alloywm/${i} >> ${PLIST}
.endfor
${ECHO_CMD} @dirrm share/doc/alloywm >> ${PLIST}
.endif
2002-01-22 23:40:03 +00:00
do-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Changelog ${WRKSRC}/README ${DOCSDIR}
.endif
${FIND} ${SCRIPTS} \! -name '*in' -type f -exec \
${INSTALL_SCRIPT} {} ${PREFIX}/bin \;
2002-01-22 23:40:03 +00:00
${FIND} ${WRKSRC} -type f -perm 755 \
-exec ${INSTALL_PROGRAM} {} ${PREFIX}/bin \;
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgtk12}!=""
USE_GNOME+= gtk12
PKGNAMESUFFIX= -gtk
2002-01-22 23:40:03 +00:00
.endif
.include <bsd.port.post.mk>