Changeset View
Changeset View
Standalone View
Standalone View
japanese/narcissu2/Makefile
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# $FreeBSD$ | |||||
PORTNAME= narcissu2 | |||||
PORTVERSION= 1 | |||||
CATEGORIES= japanese games | |||||
MASTER_SITES= http://caras.rassyai.com/~stage-nana/:game \ | |||||
http://mirror0.fuzzy2.com/2007/05/stage-nana/:game \ | |||||
http://mirror.studio-ramble.com/upload/280/200705/:game \ | |||||
http://mirror1.lapistan.jp:8000/mirror01/2007/05/stage-nana/:game \ | |||||
http://mirror2.fuzzy2.com/2007/05/stage-nana/:game \ | |||||
http://mirror3.fuzzy2.com/2007/05/stage-nana/:game \ | |||||
http://mirror4.fuzzy2.com/2007/05/stage-nana/:game \ | |||||
http://mirror11.fuzzy2.com/2007/05/stage-nana/:game \ | |||||
http://aur.archlinux.org/packages/na/${PORTNAME}-en/:icon | |||||
DISTNAME= naru2 | |||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:game \ | |||||
${PORTNAME}-en.tar.gz:icon | |||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} | |||||
MAINTAINER= jbeich@FreeBSD.org | |||||
COMMENT= Visual novel about an encounter of terminally ill | |||||
LICENSE= Freeware | |||||
LICENSE_NAME= Narcissu and Narcissu 2 License (from English README) | |||||
LICENSE_TEXT= Permission has been granted to anyone to redistribute \ | |||||
these games by means such as the Internet, provided such \ | |||||
distribution is free of charge and the contents of the \ | |||||
game data are not modified. | |||||
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept | |||||
EXTRACT_DEPENDS=convmv:${PORTSDIR}/converters/convmv | |||||
RUN_DEPENDS= onscripter:${PORTSDIR}/devel/onscripter | |||||
USES= lha | |||||
NO_ARCH= yes | |||||
NO_BUILD= yes | |||||
SUB_FILES= wrapper | |||||
SUB_LIST= PORTNAME="${PORTNAME}" | |||||
PORTDATA= * | |||||
PLIST_FILES= bin/${PORTNAME} \ | |||||
share/icons/hicolor/48x48/apps/${PORTNAME}.png | |||||
DESKTOP_ENTRIES="Narcissu & Narcissu: Side 2nd" \ | |||||
"" \ | |||||
"${PORTNAME}" \ | |||||
"${PORTNAME}" \ | |||||
"Game;AdventureGame;" \ | |||||
"" | |||||
# Default to UTF-8, same as Gnome; for locale charmap | |||||
.if !defined(LANG) && !defined(LC_CTYPE) | |||||
AMDmi3: You shouldn't depend on user environment. This won't work as intended in many cases, e.g. even… | |||||
Not Done Inline Actionspost-extract happens outside SU_CMD even in NO_STAGE times. Guest illustrations with filenames in SJIS are just fan art not used during the game. English version doesn't have them. As removing or not installing the files is going to require the same amount of care I won't bother unless there's a better way than: # -*- encoding: sjis -*- ... post-extract: @${RM} -rf ${WRKSRC}/�Q�X�g�� or post-extract: @${RM} -rf ${WRKSRC}/$$(${ECHO_CMD} ゲスト壁 | \ ${ICONV_CMD} -f UTF-8 -t SJIS-MS) jbeich: `post-extract` happens outside `SU_CMD` even in `NO_STAGE` times.
Guest illustrations with… | |||||
.MAKEFLAGS: LANG=ja_JP.UTF-8 | |||||
.endif | |||||
post-extract: | |||||
@${TAR} -xf ${_DISTDIR}/${DISTFILES:M*\:icon:C/:.*//} \ | |||||
-C${WRKDIR} --no-same-owner --no-same-permissions | |||||
@(cd ${WRKSRC} && ${RM} -f *.exe *.dll *.txt) | |||||
# Fixup filenames of guest illustrations | |||||
-convmv --notest -r -f SJIS \ | |||||
-t $$(locale charmap) ${WRKSRC} 2>/dev/null | |||||
do-install: | |||||
${INSTALL_SCRIPT} ${WRKDIR}/wrapper \ | |||||
${STAGEDIR}${PREFIX}/bin/${PORTNAME} | |||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps | |||||
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}-en/${PORTNAME}-en.png \ | |||||
${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png | |||||
${MKDIR} ${STAGEDIR}${DATADIR} | |||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}) | |||||
.include <bsd.port.mk> |
You shouldn't depend on user environment. This won't work as intended in many cases, e.g. even if user has LANG set, it may not be propagated to su/sudo session; if it is propagated, builds will be inconsistent for example when port is built by different users with different locales. Also, LANG will never be set for packages.
If this is needed for correct built, set it unconditionally (and better set LC_ALL, so even if LANG/LC_* are set, they'll always be overridden). If locale affects something useful, you may add an option instead.