mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
df1f66d426
With hat: portmgr
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# Created by: UMENO Takashi
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pykawari
|
|
PORTVERSION= 8.2.8
|
|
PORTREVISION= 5
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/kawari/kawari/${PORTVERSION}
|
|
DISTNAME= kawari-${PORTVERSION:S/.//g}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Real kawari8 module for ninix-aya
|
|
|
|
RUN_DEPENDS= ninix:${PORTSDIR}/games/ninix-aya
|
|
|
|
EXTRACT_BEFORE_ARGS= # empty
|
|
EXTRACT_AFTER_ARGS= # empty
|
|
|
|
PLIST_SUB= LOCALBASE=${LOCALBASE}
|
|
|
|
USES= gmake zip
|
|
USE_PYTHON= 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}" ${MAKE_CMD} -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>
|