Changeset View
Standalone View
devel/rlvm/Makefile
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# $FreeBSD$ | |||||
PORTNAME= rlvm | |||||
PORTVERSION= 0.14 | |||||
CATEGORIES= devel games | |||||
MAINTAINER= jbeich@FreeBSD.org | |||||
COMMENT= RealLive virtual machine clone | |||||
LICENSE= GPLv2 GPLv3 MIT | |||||
LICENSE_COMB= multi | |||||
BUILD_DEPENDS= ${LOCALBASE}/include/utf8.h:${PORTSDIR}/devel/utf8cpp | |||||
LIB_DEPENDS= libvorbisfile.so:${PORTSDIR}/audio/libvorbis \ | |||||
libboost_serialization.so:${PORTSDIR}/devel/boost-libs \ | |||||
libguichan.so:${PORTSDIR}/devel/guichan \ | |||||
libGLEW.so:${PORTSDIR}/graphics/glew \ | |||||
libjpeg.so:${PORTSDIR}/graphics/jpeg \ | |||||
libpng.so:${PORTSDIR}/graphics/png \ | |||||
libsmpeg.so:${PORTSDIR}/multimedia/smpeg | |||||
RUN_DEPENDS= ${LOCALBASE}/lib/X11/fonts/TrueType/mona.ttf:${PORTSDIR}/japanese/monafonts-ttf \ | |||||
${LOCALBASE}/lib/X11/fonts/dejavu/DejaVuSans.ttf:${PORTSDIR}/x11-fonts/dejavu | |||||
USE_GITHUB= yes | |||||
GH_ACCOUNT= eglaysher | |||||
GH_TAGNAME= release-${PORTVERSION} | |||||
GH_COMMIT= b88bfe0 | |||||
USES= compiler:c++11-lib pkgconfig scons | |||||
USE_GL= yes | |||||
USE_GNOME= gtk20 | |||||
USE_SDL= image mixer ttf | |||||
EXCLUDE= GLEW SDL_image SDL_mixer SDL_ttf gmock gtest guichan \ | |||||
luabind utf8cpp # leaving only pygame, xclannad, *.cpp | |||||
EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude vendor/,} | |||||
bapt: This is creative but hey why not :) | |||||
jbeichAuthorUnsubmitted Not Done Inline ActionsI've borrowed the idea from other ports.
jbeich: I've borrowed the idea from other ports.
- devel/gdb
- textproc/htmldoc
| |||||
MAKE_ARGS= VERBOSE=1 | |||||
INSTALLS_ICONS= yes | |||||
PORTDOCS= AUTHORS.TXT NEWS.TXT README.md STATUS.TXT notes | |||||
LDFLAGS+= -Wl,--as-needed # avoid overlinking (gtk deps) | |||||
baptUnsubmitted Not Done Inline ActionsThis is known to be buggy our ld(1), and every ld(1) (a bit less on newer ld(1)), I will trust you on having tested the final binary making sure it is linked properly to the right libs bapt: This is known to be buggy our ld(1), and every ld(1) (a bit less on newer ld(1)), I will trust… | |||||
jbeichAuthorUnsubmitted Not Done Inline ActionsI think you're referring to rS276630 et al. In this case, libpthread satisfies references made by a header from libboost_thread. $ nm -D =rlvm | fgrep pthread U pthread_mutex_destroy U pthread_mutex_init U pthread_mutex_lock U pthread_mutex_unlock Otherwise, see TEST PLAN. devel/rlvm doesn't install shared libs, so no need for -Wl,-z,defs. jbeich: I think you're referring to rS276630 et al. In this case, libpthread satisfies references made… | |||||
OPTIONS_DEFINE= DEBUG NLS TEST | |||||
OPTIONS_SUB= yes | |||||
DEBUG_MAKE_ARGS_OFF=--release | |||||
NLS_USES= gettext | |||||
NLS_EXTRA_PATCHES_OFF=${FILESDIR}/extra-patch-disable-nls | |||||
TEST_USES= lua:51 | |||||
TEST_BUILD_DEPENDS=googletest>=1.7.0:${PORTSDIR}/devel/googletest \ | |||||
googlemock>=1.7.0:${PORTSDIR}/devel/googlemock \ | |||||
luabind>0:${PORTSDIR}/devel/luabind | |||||
TEST_EXTRA_PATCHES_OFF=${FILESDIR}/extra-patch-disable-test | |||||
# XXX replace with bsd.port.options.mk once 8.4-RELEASE is EOL | |||||
# COMPILER_TYPE is defined in .pre without /usr/share/mk/bsd.compiler.mk | |||||
baptUnsubmitted Not Done Inline Actionsto be exact COMPILER_TYPE is defined in pre.mk when USES are evaluated (COMPILER_TYPE is defined by USES=compiler aka Mk/Uses/compiler.mk bapt: to be exact COMPILER_TYPE is defined in pre.mk when USES are evaluated (COMPILER_TYPE is… | |||||
jbeichAuthorUnsubmitted Not Done Inline ActionsCOMPILER_TYPE is also defined by any Makefile that pulls bsd.own.mk, or via bsd.port.mk. I'm trying to keep XXX in sync with other ports (e.g. security/afl) to ease discovering. -D_GLIBCXX_USE_C99 should be harmless for clang/libc++, so let's add unconditionally. jbeich: COMPILER_TYPE is also defined by any Makefile that pulls bsd.own.mk, or via bsd.port.mk. I'm… | |||||
.include <bsd.port.pre.mk> | |||||
.if ${COMPILER_TYPE} == "gcc" | |||||
CFLAGS+= -D_GLIBCXX_USE_C99 # XXX ports/193528 | |||||
.endif | |||||
post-patch: | |||||
@${GREP} -Flr 'utf8cpp/' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \ | |||||
-i .bak.utf8cpp -e 's,utf8cpp/,,' | |||||
# Default to TTF/ subdir where japanese/ fonts are often installed | |||||
@${GREP} -Flr '/usr/share' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} \ | |||||
-i .bak.paths \ | |||||
-e 's,/usr/share,${PREFIX}/share,g' \ | |||||
-e 's,share/fonts,lib/X11/fonts,' \ | |||||
-e 's,truetype/ttf-dejavu,dejavu,' \ | |||||
-e 's,truetype/mona,TrueType,' \ | |||||
-e 's,truetype/[^/"]*,TTF,' | |||||
pre-install: | |||||
.if ${PORT_OPTIONS:MTEST} | |||||
(cd ${WRKSRC} && build/${PORTNAME}_unittests) | |||||
.endif | |||||
do-install: | |||||
${INSTALL_PROGRAM} ${WRKSRC}/build/${PORTNAME} \ | |||||
${STAGEDIR}${PREFIX}/bin | |||||
${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.6 \ | |||||
${STAGEDIR}${MAN6PREFIX}/man/man6 | |||||
${INSTALL_DATA} ${WRKSRC}/src/platforms/gtk/${PORTNAME}.desktop \ | |||||
${STAGEDIR}${DESKTOPDIR} | |||||
@(cd ${WRKSRC}/resources && for f in */${PORTNAME}.png; do \ | |||||
${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/$${f%/*}x$${f%/*}/apps; \ | |||||
${INSTALL_DATA} -v $$f \ | |||||
${STAGEDIR}${PREFIX}/share/icons/hicolor/$${f%/*}x$${f%/*}/apps; \ | |||||
done) | |||||
.if ${PORT_OPTIONS:MNLS} | |||||
(cd ${WRKSRC}/build/locale && ${COPYTREE_SHARE} \ | |||||
. ${STAGEDIR}${PREFIX}/share/locale) | |||||
.endif | |||||
.if ${PORT_OPTIONS:MDOCS} | |||||
${MKDIR} ${STAGEDIR}${DOCSDIR} | |||||
. for f in ${PORTDOCS:Nnotes} | |||||
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} | |||||
. endfor | |||||
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \ | |||||
notes ${STAGEDIR}${DOCSDIR}) | |||||
.endif | |||||
.include <bsd.port.post.mk> |
This is creative but hey why not :)