freebsd-ports/x11-wm/alloywm/Makefile
Trevor Johnson 3dd750df2d The distfile was re-rolled. The author is now using different names
for himself (Kensuke Otake or Hitokiro Otake rather than Aaron
Schoenhals).  Many of the command-line options were removed.

Add a do-build target in the port's skeleton, to accommodate both
old and new distfiles.

Reported by:	kris
2002-05-13 23:01:02 +00:00

59 lines
1.5 KiB
Makefile

# 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
USE_X_PREFIX= yes
WANT_GTK= yes
SCRIPTS= ${WRKSRC}/scriptdir
pre-configure:
${FIND} ${WRKSRC} \( -name '*.in' -or -name configure \) -exec \
${PERL} -pi -e 's:bash:sh:g ; \
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
pre-install:
cd ${WRKSRC} && ${FIND} * -type f -perm 755 | cut -f 2 -d / | \
${PERL} -pi -e "s:^:bin/:g" > ${PLIST}
${FIND} ${SCRIPTS} \! -name '*in' -type f | \
${PERL} -pi -e "s:^${SCRIPTS}:bin:g" >> ${PLIST}
do-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/Changelog ${WRKSRC}/README ${DOCSDIR}
.endif
${INSTALL_SCRIPT} ${SCRIPTS}/* ${PREFIX}/bin
${FIND} ${WRKSRC} -type f -perm 755 \
-exec ${INSTALL_PROGRAM} {} ${PREFIX}/bin \;
.include <bsd.port.pre.mk>
.if defined(HAVE_GTK)
USE_GTK=yes
.endif
.include <bsd.port.post.mk>