2013-09-20 19:36:33 +02:00
|
|
|
# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
|
2009-09-14 21:23:23 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= worldofgoo
|
|
|
|
PORTVERSION= 1.41
|
- Autodetect the installed linux_base port and use LINUX_DEFAULT only as
a last resort.
- Construct a list of DISTFILES for every architecture (amd64, i386).
Select one list for regular make and all lists for make makesum so linux
ports can have one combined distinfo file.
- Set DIST_SUBDIR?=centos so there's only one copy of common distfiles.
- Use MASTER_SITES and DISTFILES groups so make fetch is a bit smarter.
- Regenerate all distinfo files.
- For linux_base-c6 (just like linux_base-c7 already does) turn bin, lib,
lib64 and sbin into symbolic links to the same directory under usr.
This fixes the problem where some programs/libraries exist under / on
FreeBSD and /usr on Linux or vice versa and then depending on the order
of search paths Linux programs may run/load FreeBSD programs/libraries
and fail.
- Turn usr/share/icons into a symbolic link to LOCALBASE/share/icons so
Linux programs can find desktop theme icons. This eliminates the need
for x11-themes/linux*-hicolor-icon-theme.
- Rename pkg-plist.x86_64 to pkg-plist.amd64.
- Regenerate all pkg-plist files.
- Add @preexec to linux_base pkg-plist that moves existing files in bin,
lib, lib64, sbin and icons to the new destination before the directories
are turned into symbolic links.
- Remove several empty directories from linux_base ports.
- Sweep over all linux ports: use consistent style, remove old CONFLICTS,
remove unused pkg-descr files, add NLS option,...
- Remove old linux arts, esound and openssl-compat ports.
2017-01-31 17:54:21 +01:00
|
|
|
PORTREVISION= 4
|
2009-09-14 21:23:23 +02:00
|
|
|
CATEGORIES= games linux
|
|
|
|
MASTER_SITES= http://freebsd.nsu.ru/distfiles/
|
|
|
|
PKGNAMEPREFIX= linux-
|
|
|
|
DISTNAME= WorldOfGooDemo.${PORTVERSION}
|
|
|
|
|
2011-09-01 13:48:00 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2009-09-14 21:23:23 +02:00
|
|
|
COMMENT= Demo version of incredible physics based puzzle/construction game
|
|
|
|
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
|
2016-09-05 21:23:42 +02:00
|
|
|
USES= linux
|
2017-02-20 19:12:36 +01:00
|
|
|
USE_LINUX= dri libvorbis sdl12 sdlmixer
|
2009-09-14 21:23:23 +02:00
|
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/WorldOfGooDemo
|
|
|
|
DATADIR= ${PREFIX}/share/WorldOfGoo
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/WorldOfGoo
|
|
|
|
|
2014-03-26 03:24:37 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2017-02-20 19:12:36 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2009-09-14 21:23:23 +02:00
|
|
|
|
2017-02-20 19:12:36 +01:00
|
|
|
.if ${LINUX_ARCH} == "i386"
|
2009-09-14 21:23:23 +02:00
|
|
|
TARGET_BIN= WorldOfGoo.bin32
|
|
|
|
.else
|
|
|
|
TARGET_BIN= WorldOfGoo.bin64
|
|
|
|
.endif
|
|
|
|
|
|
|
|
# Data files are in pkg-plist
|
|
|
|
PLIST_FILES= bin/WorldOfGoo bin/${TARGET_BIN}
|
|
|
|
PORTDOCS= eula.txt linux-issues.txt readme.html
|
|
|
|
|
|
|
|
pre-patch: .SILENT
|
|
|
|
# Wrapper script is required since game binary looks for its resources in
|
|
|
|
# current directory only. Vendor provided one is overly complicated, so
|
|
|
|
# we create our own, without blackjack and hookers.
|
|
|
|
${MV} ${WRKSRC}/WorldOfGoo ${WRKSRC}/WorldOfGoo.vendor
|
|
|
|
${ECHO_CMD} "#!/bin/sh" > ${WRKSRC}/WorldOfGoo
|
|
|
|
${ECHO_CMD} "" >> ${WRKSRC}/WorldOfGoo
|
|
|
|
${ECHO_CMD} "cd ${DATADIR} && ${PREFIX}/bin/${TARGET_BIN}" \
|
|
|
|
>> ${WRKSRC}/WorldOfGoo
|
|
|
|
|
|
|
|
do-install:
|
2014-03-26 03:24:37 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${TARGET_BIN} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/WorldOfGoo ${STAGEDIR}${PREFIX}/bin
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} "properties res" ${STAGEDIR}${DATADIR}
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
2009-09-14 21:23:23 +02:00
|
|
|
.endif
|
|
|
|
|
2017-02-20 19:12:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|