mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
79 lines
2.1 KiB
Makefile
79 lines
2.1 KiB
Makefile
# New ports collection makefile for: bomb
|
|
# Date created: 2000-10-23
|
|
# Whom: trevor
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= bomb
|
|
PORTVERSION= 1.0
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
MASTER_SITE_SUBDIR= apps/graphics/hacks/svgalib
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Interactive display hack for SVGAlib or X
|
|
|
|
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
|
|
vga.1:${PORTSDIR}/graphics/svgalib
|
|
|
|
NO_PACKAGE= "parts are under GPL, parts under X license"
|
|
|
|
BROKEN= Checksum mismatch
|
|
|
|
DATADIR= share/${PORTNAME}/
|
|
DOCDIR= share/doc/${PORTNAME}/
|
|
DOCS= COPYING README bomb.lsm guile.txt manual.txt notes.txt
|
|
ONLY_FOR_ARCHS= i386
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
SRCS= acidlife anneal bomb brain cmap fast fuse gif image image_rule \
|
|
image_seq libifs match quad rd rotor rug rug_multi \
|
|
rug_rug shade slip sound static wave zio
|
|
.for i in ${SRCS}
|
|
OBJS+= ${i}.o
|
|
.endfor
|
|
USE_X_PREFIX= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
pre-build:
|
|
${ECHO_CMD} "bin/bomb" > ${PLIST}
|
|
for i in `${FIND} -s ${WRKSRC}/suck -type f`; do \
|
|
${ECHO_CMD} ${DATADIR}suck/`${BASENAME} $${i}` >> ${PLIST}; \
|
|
done
|
|
.for i in cmap-data flame-data seq-data title.tif
|
|
${ECHO_CMD} ${DATADIR}/${i} >> ${PLIST}
|
|
.endfor
|
|
.if !defined(NOPORTDOCS)
|
|
.for i in ${DOCS}
|
|
${ECHO_CMD} ${DOCDIR}${i} >> ${PLIST}
|
|
.endfor
|
|
${ECHO_CMD} "@dirrm "${DOCDIR} >> ${PLIST}
|
|
.endif
|
|
${ECHO_CMD} "@dirrm "${DATADIR}/suck >> ${PLIST}
|
|
${ECHO_CMD} "@dirrm "${DATADIR} >> ${PLIST}
|
|
|
|
do-build:
|
|
.for i in ${SRCS}
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} -DDATA_DIR=\"${PREFIX}/${DATADIR}\" \
|
|
-L${X11BASE}/lib \
|
|
-I${X11BASE}/include \
|
|
-L${LOCALBASE}/lib \
|
|
-I${LOCALBASE}/include -c ${i}.c
|
|
.endfor
|
|
cd ${WRKSRC} && ${CC} ${CFLAGS} -o bomb ${OBJS} -lX11 -lvga -lm -ltiff \
|
|
-L${LOCALBASE}/lib -L${X11BASE}/lib
|
|
|
|
do-install:
|
|
${MKDIR} ${PREFIX}/${DATADIR}
|
|
cd ${WRKSRC} && ${PAX} -r -w *-data suck title.tif ${PREFIX}/${DATADIR}
|
|
${INSTALL} -c -g wheel -o root -m 4755 ${WRKSRC}/bomb ${PREFIX}/bin
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${PREFIX}/${DOCDIR}
|
|
.for i in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${DOCDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|