1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/japanese/slimeforest/Makefile
Boris Samorodov 0263b9d868 Welcome to the new linux ports infrastructure which allows using
both current (fc4) and future linux (f8) distributions at one
ports tree.

The patch contains full changes to ports/Mk files and all ports involved.
But only infrastructure is changed. The resulting packages are the same as
before. Hence no need to bump PORTREVISIONs.

The idea was taken from bsd.gnome.mk and others.

More than 130 ports are switched to follow a new linux infrastructure
introduced by changes to bsd.port.mk, bsd.linux-rpm.mk and a new
bsd.linux-apps.mk.

Thanks for all who was involved and helped me with this work.
And help from Alexander Leidinger was incredible.

Other changes are coming. Stay tuned!

PR:		ports/132510
Submitted by:	bsam (me)
Exp-run by:	portmgr (pav)
2009-03-19 17:28:51 +00:00

59 lines
1.4 KiB
Makefile

# New ports collection makefile for: sfa
# Date created: 21 August 2004
# Whom: nivit@email.it
#
# $FreeBSD$
#
PORTNAME= slimeforest
PORTVERSION= 0.60
CATEGORIES= japanese games linux
MASTER_SITES= http://nivi.interfree.it/distfiles/${DIST_SUBDIR}/ \
http://lrnj.com/
DISTNAME= sfa
EXTRACT_SUFX= .tgz
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= A NES RPG game for learning KANA and KANJI (linux version)
NO_BUILD= yes
USE_LINUX= yes
USE_LINUX_APPS= sdlimage
WRKSRC= ${WRKDIR}/slimeforest
FIND_DIRS= -type d \! -empty
FIND_EXEC= \! -type d -and -perm -a+x \! -name "*.bak" \! -name "*.orig"
FIND_DATA= \! -type d -and \! -perm -a+x -and \! -name "*.txt"
LINK_OPTS= -s
REPLACE_FILES= runfs runwin
post-patch:
@for FILE in ${REPLACE_FILES}; do \
${SED} -i .bak\
-e "/\`dirname.*\`/s//${DATADIR:S/\//\\\//g}/g" \
${WRKSRC}/$${FILE}; \
done;
do-install:
# programs and data
@cd ${WRKSRC}; \
DIRS=$$(${FIND} . ${FIND_DIRS}); \
for DIR in $${DIRS}; do \
${MKDIR} ${DATADIR}/$${DIR}; \
done; \
FILES=$$(${FIND} . ${FIND_EXEC} ); \
for FILE in $${FILES}; do \
${INSTALL_SCRIPT} $${FILE} ${DATADIR}/$${FILE}; \
done; \
FILES=$$(${FIND} . ${FIND_DATA}); \
for FILE in $${FILES}; do \
${INSTALL_DATA} $${FILE} ${DATADIR}/$${FILE}; \
done;
# links to executables
${LN} ${LINK_OPTS} ${DATADIR}/runfs ${PREFIX}/bin/slimeforest-fs
${LN} ${LINK_OPTS} ${DATADIR}/runwin ${PREFIX}/bin/slimeforest-win
.include <bsd.port.mk>