1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/games/pykawari/Makefile
Marcus von Appen cea558e671 - Fix the usage of 'python' to get rid of the implicit lang/python
dependency

Reported by:	exp-run (PR 184591)
Approved by:	portmgr (blanket)
2013-12-15 13:21:13 +00:00

52 lines
1.4 KiB
Makefile

# Created by: UMENO Takashi
# $FreeBSD$
PORTNAME= pykawari
PORTVERSION= 8.2.8
PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= SF/kawari/kawari/${PORTVERSION}
DISTNAME= kawari-${PORTVERSION:S/.//g}
MAINTAINER= umeno@rr.iij4u.or.jp
COMMENT= A real kawari8 module for ninix-aya
EXTRACT_DEPENDS=${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
RUN_DEPENDS= ninix:${PORTSDIR}/games/ninix-aya
EXTRACT_CMD= ${UNZIP_CMD}
EXTRACT_BEFORE_ARGS= # empty
EXTRACT_AFTER_ARGS= # empty
PLIST_SUB= LOCALBASE=${LOCALBASE}
USE_PYTHON= yes
USE_GMAKE= yes
USE_ZIP= yes
WRKSRC= ${WRKDIR}/kawari-${PORTVERSION:S/.//g}
CFLAGS+= ${PTHREAD_CFLAGS} -fPIC
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
.endif
post-patch:
@${REINPLACE_CMD} -e 's|shell python|shell ${PYTHON_CMD}|' \
${WRKSRC}/build/src/gcc.mak
do-build:
(cd ${WRKSRC}/build/src; CFLAGS="${CFLAGS}" ${GMAKE} -f gcc.mak PYTHONBASE=${PYTHONBASE} PYTHON_VERSION=${PYTHON_VERSION} PTHREAD_LIBS=${PTHREAD_LIBS} CXX=${CXX})
do-install:
${MKDIR} ${PREFIX}/share/kawari
(cd ${WRKSRC}; ${TAR} -cf - document license.txt readme.1st build/BUILD.TXT) | ${TAR} -xvpf - -C ${PREFIX}/share/kawari
${LN} -f ${WRKSRC}/build/mach/freebsd/libshiori.so ${WRKSRC}/build/mach/freebsd/_kawari8.so
${MKDIR} ${PREFIX}/libexec/ninix
${INSTALL_PROGRAM} ${WRKSRC}/build/mach/freebsd/_kawari8.so ${PREFIX}/libexec/ninix
.include <bsd.port.post.mk>