mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
8f88ef3878
Submitted by: maintainer Approved by: portmgr (self) Pointy hat to: self
61 lines
1.6 KiB
Makefile
61 lines
1.6 KiB
Makefile
# New ports collection makefile for: pykawari
|
|
# Date created: 23 Jan 2004
|
|
# Whom: UMENO Takashi
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pykawari
|
|
PORTVERSION= 8.1.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= kawari
|
|
DISTNAME= kawari-${PORTVERSION:S/.//g}
|
|
EXTRACT_SUFX= .lzh
|
|
|
|
PATCH_SITES= http://rinakusu.at.infoseek.co.jp/
|
|
PATCHFILES= kawari-810-py-module.patch
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= umeno@rr.iij4u.or.jp
|
|
COMMENT= Pykawari is a real kawari8 module for ninix-aya
|
|
|
|
EXTRACT_DEPENDS=lha:${PORTSDIR}/archivers/lha
|
|
RUN_DEPENDS= ninix:${PORTSDIR}/games/ninix-aya
|
|
|
|
EXTRACT_CMD= lha
|
|
EXTRACT_BEFORE_ARGS= xfqw=${WRKDIR}
|
|
EXTRACT_AFTER_ARGS= # empty
|
|
|
|
PLIST_SUB= LOCALBASE=${LOCALBASE}
|
|
|
|
USE_PYTHON= yes
|
|
USE_GMAKE= yes
|
|
USE_X_PREFIX= yes
|
|
|
|
WRKSRC= ${WRKDIR}/kawari-${PORTVERSION:S/.//g}
|
|
CFLAGS+= ${PTHREAD_CFLAGS} -fPIC
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 502126
|
|
BROKEN= "Does not compile on FreeBSD >= 5.x"
|
|
.endif
|
|
|
|
.if ${ARCH} == "amd64"
|
|
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})
|
|
|
|
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>
|