2005-02-06 20:47:34 +01:00
|
|
|
# New ports collection makefile for: scare
|
|
|
|
# Date created: 6 February 2005
|
|
|
|
# Whom: Peter Pentchev <roam@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= scare
|
2012-03-24 17:25:23 +01:00
|
|
|
PORTVERSION= 1.3.10
|
2005-02-06 20:47:34 +01:00
|
|
|
CATEGORIES= games
|
2012-03-24 17:25:23 +01:00
|
|
|
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
|
2005-02-06 20:47:34 +01:00
|
|
|
|
2012-02-27 21:32:31 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-02-06 20:47:34 +01:00
|
|
|
COMMENT= ADRIFT-compatible interactive games interpreter
|
|
|
|
|
2012-03-24 17:25:23 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2006-09-26 21:51:10 +02:00
|
|
|
OPTIONS= XGLK "Use the xglk graphics library" off
|
|
|
|
|
2005-02-06 20:47:34 +01:00
|
|
|
USE_ZIP= yes
|
2012-03-24 17:25:23 +01:00
|
|
|
MAKE_JOBS_SAFE=yes
|
2005-02-06 20:47:34 +01:00
|
|
|
|
2012-03-24 17:25:23 +01:00
|
|
|
PLIST_FILES= bin/scare
|
2005-02-08 17:28:45 +01:00
|
|
|
|
2012-03-24 17:25:23 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2005-02-06 20:47:34 +01:00
|
|
|
|
|
|
|
.if defined(WITH_XGLK)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/libxglk.a:${PORTSDIR}/games/xglk
|
2012-03-24 17:25:23 +01:00
|
|
|
ALL_TARGET= scare glkscare
|
|
|
|
PLIST_FILES+= bin/glkscare
|
|
|
|
.endif
|
2005-02-06 20:47:34 +01:00
|
|
|
|
2012-03-24 17:25:23 +01:00
|
|
|
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
|
2005-02-06 20:47:34 +01:00
|
|
|
.else
|
2012-03-24 17:25:23 +01:00
|
|
|
@${TOUCH} ${WRKDIR}/xglk/Make.xglk
|
2005-02-06 20:47:34 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2012-03-24 17:25:23 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/source/scare ${PREFIX}/bin
|
|
|
|
.if defined(WITH_XGLK)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/source/glkscare ${PREFIX}/bin
|
|
|
|
.endif
|
2007-01-21 22:38:30 +01:00
|
|
|
|
|
|
|
test: build
|
2012-03-24 17:25:23 +01:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
|
|
|
|
${MAKEFILE} ${MAKE_ARGS} check
|
2005-02-06 20:47:34 +01:00
|
|
|
|
2012-03-24 17:25:23 +01:00
|
|
|
.include <bsd.port.mk>
|