60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
55 lines
1.9 KiB
Makefile
55 lines
1.9 KiB
Makefile
# Created by: Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= wxmupen64plus
|
|
PORTVERSION= 0.3
|
|
PORTREVISION= 3
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= GOOGLE_CODE \
|
|
LOCAL/acm/${PORTNAME} \
|
|
http://cdn.bitbucket.org/auria/wxmupen64plus/downloads/
|
|
DIST_SUBDIR= ${PORTNAME:S/wx//}
|
|
|
|
MAINTAINER= acm@FreeBSD.org
|
|
COMMENT= Mupen64Plus 2.0 GUI frontend written using wxWidgets
|
|
|
|
LIB_DEPENDS= libmupen64plus.so.2:${PORTSDIR}/emulators/mupen64plus-core
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libmupen64plus.so.2:${PORTSDIR}/emulators/mupen64plus-core \
|
|
${LOCALBASE}/lib/mupen64plus/mupen64plus-audio-sdl.so:${PORTSDIR}/emulators/mupen64plus-audio-sdl \
|
|
${LOCALBASE}/lib/mupen64plus/mupen64plus-input-sdl.so:${PORTSDIR}/emulators/mupen64plus-input-sdl \
|
|
${LOCALBASE}/lib/mupen64plus/mupen64plus-rsp-hle.so:${PORTSDIR}/emulators/mupen64plus-rsp-hle \
|
|
${LOCALBASE}/lib/mupen64plus/mupen64plus-video-rice.so:${PORTSDIR}/emulators/mupen64plus-video-rice \
|
|
mupen64plus:${PORTSDIR}/emulators/mupen64plus-ui-console
|
|
|
|
PROJECTHOST= bsdistfiles
|
|
USES= python
|
|
USE_SDL= yes
|
|
USE_WX= 3.0
|
|
WX_UNICODE= yes
|
|
WAF_SCRIPT= waf
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g' -e 's|%%CXX%%|${CXX}|g' -e \
|
|
's|version=2.9|version=${WX_VERSION}|g' ${WRKSRC}/wscript
|
|
|
|
do-configure:
|
|
@cd ${WRKSRC} && \
|
|
${SETENV} CC="${CC}" CPP="${CPP}" CXX="${CXX}" \
|
|
CFLAGS="${CFLAGS}" CPPFLAGS="${CPPFLAGS}" CXXFLAGS="${CXXFLAGS}" \
|
|
LDFLAGS="${LDFLAGS}" ${PYTHON_CMD} ${WAF_SCRIPT} \
|
|
configure --mupenapi=${LOCALBASE}/include/${PORTNAME:S/wx//} \
|
|
--wxconfig=${WX_CONFIG} \
|
|
--sdlconfig=${SDL_CONFIG} \
|
|
--datadir=${DATADIR} \
|
|
--libdir=${LOCALBASE}/lib/${PORTNAME:S/wx//}
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && \
|
|
${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${WAF_SCRIPT}
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
|
@cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/build/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
|
|
.include <bsd.port.mk>
|