aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/mupen64plus-core
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-08-15 06:05:53 +0800
committermarino <marino@FreeBSD.org>2014-08-15 06:05:53 +0800
commit5fce0edbfdf7c3eb85f83a4551fe5f9152914da6 (patch)
tree71264881e7e46338f97443d40fd0b6c2582ea250 /emulators/mupen64plus-core
parent54f062c561a7da882fd7347502d15504cd8245c7 (diff)
downloadfreebsd-ports-gnome-5fce0edbfdf7c3eb85f83a4551fe5f9152914da6.tar.gz
freebsd-ports-gnome-5fce0edbfdf7c3eb85f83a4551fe5f9152914da6.tar.zst
freebsd-ports-gnome-5fce0edbfdf7c3eb85f83a4551fe5f9152914da6.zip
Stage all emulators/mupen64plus ports
PR: 190081 Submitted by: Matthieu Volat Tweaks by: marino
Diffstat (limited to 'emulators/mupen64plus-core')
-rw-r--r--emulators/mupen64plus-core/Makefile10
-rw-r--r--emulators/mupen64plus-core/Makefile.common50
-rw-r--r--emulators/mupen64plus-core/pkg-descr2
3 files changed, 26 insertions, 36 deletions
diff --git a/emulators/mupen64plus-core/Makefile b/emulators/mupen64plus-core/Makefile
index d96b64503afb..577682741fe5 100644
--- a/emulators/mupen64plus-core/Makefile
+++ b/emulators/mupen64plus-core/Makefile
@@ -13,7 +13,7 @@ PKGNAMESUFFIX?= -core
DIST_SUBDIR= ${PORTNAME}
MAINTAINER?= ports@FreeBSD.org
-COMMENT?= A fork of Mupen64 Nintendo 64 emulator
+COMMENT?= Fork of Mupen64 Nintendo 64 emulator
#PROJECTHOST= bsdistfiles
USES= gmake pkgconfig
@@ -27,9 +27,5 @@ OPTFLAGS= #
MAKE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" OPTFLAGS="${OPTFLAGS}"
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}${PKGNAMESUFFIX}/options
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
-
-.include "${MASTERDIR}/Makefile.common"
-
-.include <bsd.port.post.mk>
+.include "${.CURDIR}/../mupen64plus-core/Makefile.common"
+.include <bsd.port.mk>
diff --git a/emulators/mupen64plus-core/Makefile.common b/emulators/mupen64plus-core/Makefile.common
index 5219140a912e..c4a199639560 100644
--- a/emulators/mupen64plus-core/Makefile.common
+++ b/emulators/mupen64plus-core/Makefile.common
@@ -16,10 +16,6 @@ LIB_DEPENDS+= libfreetype.so:${PORTSDIR}/print/freetype2 \
PLIST= ${WRKDIR}/pkg-plist
.endif
-.if ${PKGNAMESUFFIX} == "-ui-console"
-MAN6= mupen64plus.6
-.endif
-
.if ${PKGNAMESUFFIX} == "-video-rice"
LIB_DEPENDS+= libpng15.so:${PORTSDIR}/graphics/png
.endif
@@ -62,13 +58,17 @@ pre-install:
@${ECHO_CMD} "%%DATADIR%%/InputAutoCfg.ini" >> ${PLIST}
. endif
+. if ${PKGNAMESUFFIX} == "-ui-console"
+ @${ECHO_CMD} "man/man6/mupen64plus.6.gz" >> ${PLIST}
+. endif
+
. if ${PKGNAMESUFFIX} != "-ui-console"
@${ECHO_CMD} "lib/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}.so" >> ${PLIST}
@${ECHO_CMD} "@dirrmtry lib/${PORTNAME}" >> ${PLIST}
- @${ECHO_CMD} "@dirrmtry %%DATADIR%%" >> ${PLIST}
. else
@${ECHO_CMD} "bin/${PORTNAME}" >> ${PLIST}
. endif
+ @${ECHO_CMD} "@dirrmtry %%DATADIR%%" >> ${PLIST}
.else
post-patch:
@cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} -e 's|gcc|${CC}|g' -e \
@@ -76,54 +76,48 @@ post-patch:
.endif
do-install:
+ @${MKDIR} ${STAGEDIR}${DATADIR}
.if ${PKGNAMESUFFIX} == "-core"
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/libmupen64plus.so.2.0.0 \
- ${PREFIX}/lib/libmupen64plus.so.2.0.0
+ ${STAGEDIR}${PREFIX}/lib/libmupen64plus.so.2.0.0
- @${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/data/* \
- ${DATADIR}
+ ${STAGEDIR}${DATADIR}
- @${MKDIR} ${PREFIX}/include/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/include/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/src/api/m64p_*.h \
- ${PREFIX}/include/${PORTNAME}
+ ${STAGEDIR}${PREFIX}/include/${PORTNAME}
-. if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/RELEASE \
- ${DOCSDIR}/RELEASE
-. endif
- ${LN} -sf ${PREFIX}/lib/libmupen64plus.so.2.0.0 ${PREFIX}/lib/libmupen64plus.so.2
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/RELEASE \
+ ${STAGEDIR}${DOCSDIR}/RELEASE
+ ${LN} -sf ${PREFIX}/lib/libmupen64plus.so.2.0.0 ${STAGEDIR}${PREFIX}/lib/libmupen64plus.so.2
.else
. if ${PKGNAMESUFFIX} == "-ui-console"
- ${INSTALL_MAN} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/doc/${MAN6} ${PREFIX}/man/man6/
+ ${INSTALL_MAN} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/doc/mupen64plus.6 ${STAGEDIR}${PREFIX}/man/man6/
. endif
. if ${PKGNAMESUFFIX} == "-video-rice"
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/data/RiceVideoLinux.ini ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/data/RiceVideoLinux.ini ${STAGEDIR}${DATADIR}
. endif
. if ${PKGNAMESUFFIX} == "-video-glide64"
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}${PKGNAMESUFFIX}/data/Glide64.ini ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}${PKGNAMESUFFIX}/data/Glide64.ini ${STAGEDIR}${DATADIR}
. endif
. if ${PKGNAMESUFFIX} == "-video-glide64mk2"
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/data/Glide64mk2.ini ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/data/Glide64mk2.ini ${STAGEDIR}${DATADIR}
. endif
. if ${PKGNAMESUFFIX} == "-input-sdl"
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/data/InputAutoCfg.ini ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/data/InputAutoCfg.ini ${STAGEDIR}${DATADIR}
. endif
. if ${PKGNAMESUFFIX} != "-ui-console"
- @${MKDIR} ${PREFIX}/lib/${PORTNAME}
- ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME}${PKGNAMESUFFIX}.so ${PREFIX}/lib/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME}${PKGNAMESUFFIX}.so ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
. else
- ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
. endif
.endif
diff --git a/emulators/mupen64plus-core/pkg-descr b/emulators/mupen64plus-core/pkg-descr
index ecb4945ba5cf..5a7ff3875ef4 100644
--- a/emulators/mupen64plus-core/pkg-descr
+++ b/emulators/mupen64plus-core/pkg-descr
@@ -5,4 +5,4 @@ amd64 systems, and necessary plugins for audio, graphical rendering (RDP),
signal co-processor (RSP), and input. There are 3 OpenGL video plugins
included: glN64, RiceVideoLinux, and Glide64.
-WWW: http://code.google.com/p/mupen64plus/
+WWW: http://code.google.com/p/mupen64plus/