diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2010-05-19 16:04:25 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2010-05-19 16:04:25 +0000 |
commit | 5ef68ee749b28ed6f50b6a71e0358c7b81d824f2 (patch) | |
tree | 130fa926ff2886e925362e3b0041b0a088a50f44 /graphics | |
parent | 05d695f8c6f7e3200bbfdb8383dcf2a1c40df2d5 (diff) | |
download | ports-5ef68ee749b28ed6f50b6a71e0358c7b81d824f2.tar.gz ports-5ef68ee749b28ed6f50b6a71e0358c7b81d824f2.zip |
Notes
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/lightspark-devel/Makefile | 91 | ||||
-rw-r--r-- | graphics/lightspark-devel/distinfo | 3 | ||||
-rw-r--r-- | graphics/lightspark-devel/files/patch-CMakeLists.txt | 25 | ||||
-rw-r--r-- | graphics/lightspark-devel/pkg-descr | 5 | ||||
-rw-r--r-- | graphics/lightspark-devel/pkg-plist | 6 |
6 files changed, 131 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 2480c4eb3dc7..bff83dced1c4 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -473,6 +473,7 @@ SUBDIR += libwmf SUBDIR += libwpg SUBDIR += libx3dtk + SUBDIR += lightspark-devel SUBDIR += linplasma SUBDIR += linux-XnViewMP SUBDIR += linux-ac3d diff --git a/graphics/lightspark-devel/Makefile b/graphics/lightspark-devel/Makefile new file mode 100644 index 000000000000..03b594e8b901 --- /dev/null +++ b/graphics/lightspark-devel/Makefile @@ -0,0 +1,91 @@ +# New ports collection makefile for: lightspark +# Date created: 18 May 2010 +# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= lightspark +DISTVERSION= r20100518 +CATEGORIES= graphics +MASTER_SITES= http://mirror.amdmi3.ru/distfiles/ +PKGNAMESUFFIX= -devel + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= An alternative Flash Player implementation + +BUILD_DEPENDS= ${LOCALBASE}/include/llvm/Support/DataFlow.h:${PORTSDIR}/devel/llvm \ + nasm:${PORTSDIR}/devel/nasm +RUN_DEPENDS= ${LOCALBASE}/include/llvm/Support/DataFlow.h:${PORTSDIR}/devel/llvm \ + ${LOCALBASE}/lib/X11/fonts/Liberation/LiberationSerif-Regular.ttf:${PORTSDIR}/x11-fonts/liberation-fonts-ttf +LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl \ + pcrecpp.0:${PORTSDIR}/devel/pcre \ + ftgl.2:${PORTSDIR}/graphics/ftgl \ + avcodec.1:${PORTSDIR}/multimedia/ffmpeg + +USE_BZIP2= yes +USE_CMAKE= yes +USE_SDL= sdl +USE_GL= gl glew +MAKE_JOBS_SAFE= yes +USE_PERL5_BUILD=yes # for llvm-config; see ports/146711 + +CXXFLAGS+= -fpermissive + +PORTDOCS= * + +WRKSRC= ${WRKDIR}/${PORTNAME} + +OPTIONS= PLUGIN "Enable browser plugin" off + +.include <bsd.port.options.mk> + +.if ${OSVERSION} < 700042 +BROKEN= Does not compile on 6.x +.endif + +.if defined(WITH_PLUGIN) +CMAKE_ARGS+= -DCOMPILE_PLUGIN:BOOL=ON +USE_GNOME+= gtk20 +LIB_DEPENDS+= gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext +USE_WEBPLUGINS= native +WEBPLUGINS_FILES=liblightsparkplugin.so +.include "${PORTSDIR}/www/firefox/Makefile.webplugins" +CXXFLAGS+= -I${LOCALBASE}/include/firefox3 +BUILD_DEPENDS+= ${LOCALBASE}/include/firefox3/npfunctions.h:${PORTSDIR}/www/firefox \ + ${LOCALBASE}/libdata/pkgconfig/mozilla-plugin.pc:${PORTSDIR}/www/libxul +RUN_DEPENDS+= ${LOCALBASE}/include/firefox3/npfunctions.h:${PORTSDIR}/www/firefox \ + ${LOCALBASE}/libdata/pkgconfig/mozilla-plugin.pc:${PORTSDIR}/www/libxul +PLIST_SUB+= PLUGIN="" +.else +CMAKE_ARGS+= -DCOMPILE_PLUGIN:BOOL=OFF +PLIST_SUB+= PLUGIN="@comment " +.endif + +.if defined(WITH_PLUGIN) +pre-everything:: + @${ECHO_CMD} "Lightspark is currently in pre-alpha state, so only use its plugin" + @${ECHO_CMD} "if you know what you are doing; otherwise, expect browser crashes and hangs" + @sleep 3 +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|x86_64|amd64|' ${WRKSRC}/CMakeLists.txt \ + ${WRKSRC}/plugin-dir/CMakeLists.txt + @${TOUCH} ${WRKSRC}/conf/CMakeDetermineASM-NASMCompiler.cmake + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/CMakeLists.txt + @${REINPLACE_CMD} -e 's|/usr.*/LiberationSerif-Regular.ttf|${LOCALBASE}/lib/X11/fonts/Liberation/LiberationSerif-Regular.ttf|' \ + ${WRKSRC}/swf.cpp +.if defined(WITH_PLUGIN) + @${REINPLACE_CMD} -e 's|/usr/lib/mozilla/plugins|${WEBPLUGINS_DIR}|' \ + ${WRKSRC}/plugin-dir/CMakeLists.txt +.endif + +post-install: + ${CHMOD} a+x ${PREFIX}/bin/lightspark +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/graphics/lightspark-devel/distinfo b/graphics/lightspark-devel/distinfo new file mode 100644 index 000000000000..493f49450674 --- /dev/null +++ b/graphics/lightspark-devel/distinfo @@ -0,0 +1,3 @@ +MD5 (lightspark-r20100518.tar.bz2) = 1b50fd853280c48f670b48121d2d23a2 +SHA256 (lightspark-r20100518.tar.bz2) = b5d299635112b05a8d655f71570d8c9018b3bc17da6f090f9842821839e16723 +SIZE (lightspark-r20100518.tar.bz2) = 177305 diff --git a/graphics/lightspark-devel/files/patch-CMakeLists.txt b/graphics/lightspark-devel/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..d0db787f5929 --- /dev/null +++ b/graphics/lightspark-devel/files/patch-CMakeLists.txt @@ -0,0 +1,25 @@ +--- CMakeLists.txt.orig 2010-05-17 21:55:09.000000000 +0400 ++++ CMakeLists.txt 2010-05-18 21:56:10.000000000 +0400 +@@ -55,21 +55,12 @@ + LINK_LIBRARIES(${LLVM_LIBS_CORE} ${LLVM_LIBS_JIT}) + LINK_LIBRARIES(${SDL_LIBRARY}) + LINK_LIBRARIES(${CURL_LIBRARIES}) ++LINK_DIRECTORIES(/usr/local/lib) + + ENABLE_LANGUAGE(ASM-NASM) + +-SET(CMAKE_CXX_FLAGS "-Wall -Wnon-virtual-dtor -Woverloaded-virtual -pipe -lrt -ldl") +-SET(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -D_GLIBCXX_NO_DEBUG") +-SET(CMAKE_CXX_FLAGS_PROFILE "-g -pg -O2 -DNDEBUG") +-SET(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG") +-SET(CMAKE_CXX_FLAGS_DEBIAN "-O2 -DNDEBUG") +- + ADD_DEFINITIONS(-DDATADIR="${CMAKE_INSTALL_PREFIX}/share/lightspark") + +-IF(NOT CMAKE_BUILD_TYPE) +- SET(CMAKE_BUILD_TYPE "Debug") +-ENDIF() +- + + SET(LIBSPARK_SOURCES swf.cpp swftypes.cpp tags.cpp geometry.cpp actions.cpp frame.cpp input.cpp streams.cpp tags_stub.cpp logger.cpp vm.cpp asobjects.cpp abc.cpp abc_codesynt.cpp abc_opcodes.cpp flashdisplay.cpp flashevents.cpp textfile.cpp thread_pool.cpp flashgeom.cpp flashnet.cpp flashsystem.cpp flashutils.cpp compat.cpp abc_interpreter.cpp flashexternal.cpp flashtext.cpp flashmedia.cpp flv.cpp netutils.cpp timer.cpp decoder.cpp threading.cpp flashxml.cpp) + IF(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i[3-6]86") diff --git a/graphics/lightspark-devel/pkg-descr b/graphics/lightspark-devel/pkg-descr new file mode 100644 index 000000000000..99a062861a7b --- /dev/null +++ b/graphics/lightspark-devel/pkg-descr @@ -0,0 +1,5 @@ +Lightspark is an alternative Flash Player implementation with +llvm-based ActionScript JIT compiler and support for hardware +accelerated rendering. + +WWW: http://lightspark.sourceforge.net/ diff --git a/graphics/lightspark-devel/pkg-plist b/graphics/lightspark-devel/pkg-plist new file mode 100644 index 000000000000..526d38707c5f --- /dev/null +++ b/graphics/lightspark-devel/pkg-plist @@ -0,0 +1,6 @@ +bin/lightspark +%%DATADIR%%/lightspark.frag +%%DATADIR%%/lightspark.vert +%%PLUGIN%%%%WEBPLUGINS_DIR%%/libgnashplugin.so +%%PLUGIN%%@dirrm %%WEBPLUGINS_DIR%% +@dirrm %%DATADIR%% |