1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/games/pykawari/Makefile
2010-02-05 11:46:55 +00:00

51 lines
1.3 KiB
Makefile

# New ports collection makefile for: pykawari
# Date created: 23 Jan 2004
# Whom: UMENO Takashi
#
# $FreeBSD$
#
PORTNAME= pykawari
PORTVERSION= 8.2.8
PORTREVISION= 1
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:${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
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
CFLAGS+= -fPIC
.endif
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>