aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/pipelight/Makefile
blob: 74c1bc2eee84b6c41ae6c9810df53fa5c33f0554 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Created by: Kris Moore <kmoore@FreeBSD.org>
# $FreeBSD$

PORTNAME=   pipelight
PORTVERSION=    0.2.8.2
CATEGORIES= emulators
MASTER_SITES=   https://bitbucket.org/mmueller2012/pipelight/get/ \
        http://repos.fds-team.de/pluginloader/v${DISTVERSION}/:plg
DISTNAME=   v${DISTVERSION}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} pluginloader.tar.gz:plg pluginloader.tar.gz.sig:plg
DIST_SUBDIR=    pipelight
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Wrapper for using windows plugins in web browsers

LICENSE=    LGPL21
LICENSE_FILE=   ${WRKSRC}/LICENSE

BUILD_DEPENDS=  ${LOCALBASE}/bin/gpg2:security/gnupg \
        ${LOCALBASE}/bin/bash:shells/bash
LIB_DEPENDS=    libxml2.so:textproc/libxml2
RUN_DEPENDS=    ${LOCALBASE}/bin/bash:shells/bash \
        ${LOCALBASE}/bin/wget:ftp/wget \
        ${LOCALBASE}/bin/zenity:x11/zenity \
        ${LOCALBASE}/bin/cabextract:archivers/cabextract \
        ${LOCALBASE}/bin/flock:sysutils/flock \
        ${LOCALBASE}/bin/gpg2:security/gnupg

WRKSRC=     ${WRKDIR}/mmueller2012-pipelight-792e7a4885a6
USE_GCC=    yes
USE_LDCONFIG=   yes
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib
GNU_CONFIGURE=  yes
CONFIGURE_ARGS+=--verbose --wine-path=${LOCALBASE}/bin/wine --win32-prebuilt \
        --win64-prebuilt --moz-plugin-path=${LOCALBASE}/lib/browser_plugins \
        --cxx=${CXX} --bash-interp=${LOCALBASE}/bin/bash \
        --gpg-exec=${LOCALBASE}/bin/gpg2
USE_XORG=   x11
USES=       compiler:gcc-c++11-lib gmake shebangfix
MAKE_JOBS_UNSAFE=yes
SHEBANG_FILES=  configure \
        share/install-dependency

SUB_FILES=  pipelight-mkufs

.include <bsd.port.pre.mk>

.if ${ARCH} == "i386"
BUILD_DEPENDS+= ${LOCALBASE}/bin/wine:emulators/wine-staging
RUN_DEPENDS+=   ${LOCALBASE}/bin/wine:emulators/wine-staging
.elif ${ARCH} == "amd64"
BUILD_DEPENDS+= ${LOCALBASE}/bin/wine:emulators/i386-wine-staging
RUN_DEPENDS+=   ${LOCALBASE}/bin/wine:emulators/i386-wine-staging
.endif

pre-configure:
    ${LN} -s ${DISTDIR}/${DIST_SUBDIR}/pluginloader.tar.gz \
        ${WRKSRC}/pluginloader-v${DISTVERSION}.tar.gz
    ${LN} -s ${DISTDIR}/${DIST_SUBDIR}/pluginloader.tar.gz.sig \
        ${WRKSRC}/pluginloader-v${DISTVERSION}.tar.gz.sig
    ${MKDIR} ${WRKDIR}/.gnupg

post-stage:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/pipelight/libpipelight.so

post-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/pipelight-mkufs ${STAGEDIR}${PREFIX}/bin/

.include <bsd.port.post.mk>