aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libsearpc/Makefile
blob: 48c2b63562512041046809345f7f2b2943a1d3ea (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
# $FreeBSD$

PORTNAME=   libsearpc
PORTVERSION=    3.0.7
PORTREVISION=   1
CATEGORIES= devel

MAINTAINER= ultima1252@gmail.com
COMMENT=    Simple RPC framework based on GObject System in C

LICENSE=    LGPL3
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    libjansson.so:devel/jansson \
        libgobject-2.0.so:devel/glib20

USE_GITHUB= yes
GH_ACCOUNT= haiwen
GH_TAGNAME= v3.0-latest

USES=       autoreconf gettext libtool pathfix pkgconfig python:2
USE_LDCONFIG=   yes
PATHFIX_MAKEFILEIN= Makefile.am

GNU_CONFIGURE=  yes
INSTALL_TARGET= install-strip

HAIWENDIR=  www/haiwen
SEAFILE_SERVER= ${HAIWENDIR}/seafile-server
SEALIB=     ${SEAFILE_SERVER}/seafile/lib

USERS=      seafile
GROUPS=     ${USERS}

PLIST_SUB=  USERS=${USERS} \
        GROUPS=${GROUPS} \
        SEAFILE_SERVER=${SEAFILE_SERVER} \
        HAIWENDIR=${HAIWENDIR}

post-install:
    @${MKDIR} ${STAGEDIR}${SEALIB}
    (cd ${STAGEDIR}${PREFIX}/lib && \
        ${COPYTREE_SHARE} ${PYTHON_VERSION} ${STAGEDIR}${PREFIX}/${SEALIB})
    ${RM} -r ${STAGEDIR}${PREFIX}/lib/${PYTHON_VERSION}

.include <bsd.port.mk>