mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
4e1b79a0a6
With hat: portmgr Sponsored by: Absolight
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lisaem
|
|
PORTVERSION= 1.2.6.2
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= http://lisaem.sunder.net/downloads/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Apple Lisa 2 Emulator
|
|
|
|
BUILD_DEPENDS= pngtopnm:graphics/netpbm
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= tar:bzip2
|
|
USE_WX= 2.8
|
|
|
|
DESKTOP_ENTRIES="LisaEm" "" "lisaem" "lisaem" "" ""
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|bash|sh|; s|==|=|; \
|
|
s|wx-config|${WX_CONFIG:T}|; \
|
|
s|/usr/local/|${PREFIX}/|; \
|
|
s|^function ||; /[Ss]trip/d' ${WRKSRC}/build.sh
|
|
@${REINPLACE_CMD} -e \
|
|
's|^inline |static inline |' ${WRKSRC}/lisa/zilog8530.c
|
|
|
|
do-build:
|
|
${FIND} ${WRKSRC} -type l -delete
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ./build.sh build \
|
|
--without-optimize
|
|
${GREP} -v "^//" ${WRKSRC}/resources/lisa128x85.xpm | \
|
|
${LOCALBASE}/bin/xpmtoppm | ${LOCALBASE}/bin/pnmtopng \
|
|
> ${WRKDIR}/lisaem.png
|
|
|
|
do-install:
|
|
(cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} * ${STAGEDIR}${PREFIX}/bin)
|
|
(cd ${WRKDIR} && ${INSTALL_DATA} lisaem.png ${STAGEDIR}${PREFIX}/share/pixmaps)
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
(cd ${WRKSRC}/resources && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR})
|
|
${LN} -sf lisaem ${STAGEDIR}${PREFIX}/share/LisaEm
|
|
|
|
.include <bsd.port.mk>
|