5ae2a00299
PR: 166030 Submitted by: Ports Fury Feature safe: yes
70 lines
1.8 KiB
Makefile
70 lines
1.8 KiB
Makefile
# New ports collection makefile for: scare
|
|
# Date created: 6 February 2005
|
|
# Whom: Peter Pentchev <roam@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= scare
|
|
PORTVERSION= 1.3.10
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://ifarchive.flavorplex.com/%SUBDIR%/ \
|
|
http://ifarchive.heanet.ie/%SUBDIR%/ \
|
|
http://ifarchive.jmac.org/%SUBDIR%/ \
|
|
http://ifarchive.plover.net/%SUBDIR%/ \
|
|
http://ifarchive.wurb.com/%SUBDIR%/ \
|
|
http://www.ifarchive.org/%SUBDIR%/ \
|
|
ftp://ftp.ifarchive.org/%SUBDIR%/
|
|
MASTER_SITE_SUBDIR= if-archive/programming/adrift
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= ADRIFT-compatible interactive games interpreter
|
|
|
|
LICENSE= GPLv2
|
|
|
|
OPTIONS= XGLK "Use the xglk graphics library" off
|
|
|
|
USE_ZIP= yes
|
|
MAKE_JOBS_SAFE=yes
|
|
|
|
PLIST_FILES= bin/scare
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(WITH_XGLK)
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
|
|
ALL_TARGET= scare glkscare
|
|
PLIST_FILES+= bin/glkscare
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
'/^CC/s|= |?= | ; \
|
|
/^CFLAGS/s|= -O2|+= | ; \
|
|
/^CFLAGS/s|-fPIC|| ; \
|
|
/^LDLIBS/s|=.*|= -lz| ; \
|
|
/-D__unix/s|^#|| ; \
|
|
s|^sinclude.*|.include "$$(GLKPATH)/Make.$$(GLK)"| ; \
|
|
s| $$(ZOBJECTS)||' ${WRKSRC}/source/Makefile
|
|
|
|
do-configure:
|
|
@${MKDIR} ${WRKDIR}/xglk
|
|
.if defined(WITH_XGLK)
|
|
@${LN} -sf ${LOCALBASE}/include/xglk/*.h ${WRKDIR}/xglk
|
|
@${LN} -sf ${LOCALBASE}/share/xglk/Make.xglk ${WRKDIR}/xglk
|
|
.else
|
|
@${TOUCH} ${WRKDIR}/xglk/Make.xglk
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/source/scare ${PREFIX}/bin
|
|
.if defined(WITH_XGLK)
|
|
${INSTALL_PROGRAM} ${WRKSRC}/source/glkscare ${PREFIX}/bin
|
|
.endif
|
|
|
|
test: build
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
|
${MAKEFILE} ${MAKE_ARGS} check
|
|
|
|
.include <bsd.port.mk>
|