ed40f4ba7b
PR: 159439 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
72 lines
2.1 KiB
Makefile
72 lines
2.1 KiB
Makefile
# New ports collection makefile for: hatari
|
|
# Date created: 15 March 2004
|
|
# Whom: Michael Neumann <mneumann@ntecs.de>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= hatari
|
|
PORTVERSION= 1.5.0
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= BERLIOS
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= An Atari ST emulator
|
|
|
|
LICENSE= GPLv2 GPLv3
|
|
LICENSE_COMB= dual
|
|
|
|
BUILD_DEPENDS= portaudio>=19:${PORTSDIR}/audio/portaudio2
|
|
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
|
|
RUN_DEPENDS= portaudio>=19:${PORTSDIR}/audio/portaudio2
|
|
|
|
USE_BZIP2= yes
|
|
USE_GNOME= pygtk2
|
|
USE_SDL= sdl
|
|
USE_CMAKE= yes
|
|
CMAKE_ARGS= -DPORTAUDIO_INCLUDE_DIR:STRING="${PA2_INCLUDE_DIR}" \
|
|
-DPORTAUDIO_LIBRARY:STRING="${PA2_LIBRARY}" \
|
|
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
|
|
-DETCDIR:STRING="${PREFIX}/etc" \
|
|
-DMANDIR:STRING="man/man1"
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
MANCOMPRESSED= yes
|
|
MANLANG= "" fr
|
|
MAN1= ${PORTNAME}.1
|
|
MAN1_EN= atari-hd-image.1 hatariui.1 hconsole.1 hmsa.1 zip2st.1
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include/portaudio2
|
|
PA2_INCLUDE_DIR=-I${LOCALBASE}/include/portaudio2
|
|
PA2_LIBRARY= ${LOCALBASE}/lib/portaudio2/libportaudio.so
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name "*.1" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|^/etc|${PREFIX}/etc| ; \
|
|
s| (or /usr.*|| ; \
|
|
s|/usr/share|${PREFIX}/share|'
|
|
@${REINPLACE_CMD} -e '/doc/s|^add_|#add_|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
@${REINPLACE_CMD} -e '/DESTINATION/s|/icons/.*)|/pixmaps)|' \
|
|
${WRKSRC}/python-ui/CMakeLists.txt
|
|
|
|
post-build:
|
|
@cd ${WRKSRC}/doc && ${GZIP_CMD} -c ${PORTNAME}.1 > ${PORTNAME}.1.gz
|
|
@cd ${WRKSRC}/doc/fr && ${GZIP_CMD} -c ${PORTNAME}.1 > ${PORTNAME}.1.gz
|
|
|
|
post-install:
|
|
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1.gz ${MANPREFIX}/man/man1
|
|
@${MKDIR} ${MANPREFIX}/man/fr/man1
|
|
${INSTALL_MAN} ${WRKSRC}/doc/fr/${PORTNAME}.1.gz ${MANPREFIX}/man/fr/man1
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/[a-z]*.txt ${DOCSDIR}
|
|
@${MKDIR} ${DOCSDIR}/fr
|
|
${INSTALL_DATA} ${WRKSRC}/doc/fr/*.txt ${DOCSDIR}/fr
|
|
@${MKDIR} ${DOCSDIR}/images
|
|
${INSTALL_DATA} ${WRKSRC}/doc/images/*.png ${DOCSDIR}/images
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|