aboutsummaryrefslogtreecommitdiffstats
path: root/databases/cego/Makefile
blob: e545e868845eeb8e9fab502f554fedb801c7c911 (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
# $FreeBSD$

PORTNAME=   cego
PORTVERSION=    2.26.2
CATEGORIES= databases
MASTER_SITES=   http://www.lemke-it.com/

MAINTAINER= pi@FreeBSD.org
COMMENT=    Relational and transactional database system

LICENSE=    GPLv3
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    liblfcbase.so:${PORTSDIR}/devel/lfcbase \
        liblfcxml.so:${PORTSDIR}/devel/lfcxml
RUN_DEPENDS=    ${LOCALBASE}/bin/sudo:${PORTSDIR}/security/sudo

GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include

USE_LDCONFIG=   yes

USES=       libtool ncurses readline shebangfix
SHEBANG_FILES=  tools/cgbackup tools/cgrecover

USERS=      cego
GROUPS=     cego

PLIST_SUB+= USER=${USERS}

post-patch:
    ${REINPLACE_CMD} -e 's,-O3,,g' \
        ${WRKSRC}/src/Makefile.in \
        ${WRKSRC}/samples/cgplustest/Makefile.in \
        ${WRKSRC}/samples/cgwraptest/Makefile.in

post-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}
    ${CP} ${WRKSRC}/tools/* ${STAGEDIR}${DATADIR}
    ${MKDIR} ${STAGEDIR}${PREFIX}/etc/rc.d
    ${REINPLACE_CMD} -e 's/%%USER%%/${USERS}/g' ${WRKSRC}/samples/rc/cego
    ${CP} ${WRKSRC}/samples/rc/cego ${STAGEDIR}${PREFIX}/etc/rc.d/

post-stage:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcego.so.2.0.0
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcgwrap.so.2.0.0

.include <bsd.port.mk>