aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libudbc/Makefile
blob: b704011f2958762c616d1349c878349b77ae60fb (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
# New ports collection makefile for:    libudbc
# Date created:        22 Oct 2001
# Whom:                Eugene Grosbein <eugen@grosbein.pp.ru>
#
# $FreeBSD$
#

PORTNAME=   libudbc
PORTVERSION=    4.1
CATEGORIES= databases
MASTER_SITES=   ftp://ftp.openlinksw.co.uk/open41/ \
        ftp://www.kuzbass.ru/pub/FreeBSD/ports/distfiles/ \
        ftp://ftp.svzserv.kemerovo.su/pub/FreeBSD/distfiles.misc/
DISTNAME=   f6kuzzzz
EXTRACT_SUFX=   .taz

LIB_DEPENDS=    c.4:${PORTSDIR}/misc/compat4x

MAINTAINER= eugen@grosbein.pp.ru
COMMENT=    Openlink UDBC SDK

NO_WRKSUBDIR=   yes
NO_BUILD=   yes
INSTALLS_SHLIB= yes
ONLY_FOR_ARCHS= i386

RESTRICTED= 'Downloading and redistribution terms are unclear'

do-install:
    @${INSTALL_PROGRAM} ${WRKDIR}/udbcsdk/examples/udbctest ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/include/udbc
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/libudbc.h ${PREFIX}/include
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcext.h ${PREFIX}/include/udbc
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcimpl.h ${PREFIX}/include/udbc
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcodb3.h ${PREFIX}/include/udbc
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcodbc.h ${PREFIX}/include/udbc
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcprto.h ${PREFIX}/include/udbc
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbcsag.h ${PREFIX}/include/udbc
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/include/udbc/udbctype.h ${PREFIX}/include/udbc
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/lib/libudbc.a ${PREFIX}/lib
    @${INSTALL} -c -o ${SHAREOWN} -g ${SHAREGRP} -m 755  ${WRKDIR}/udbcsdk/lib/libudbc.la ${PREFIX}/lib
    @${INSTALL} -c -o ${LIBOWN} -g ${LIBGRP} -m 755 ${WRKDIR}/udbcsdk/lib/libudbc.so ${PREFIX}/lib
    @${LN} -f ${PREFIX}/lib/libudbc.so ${PREFIX}/lib/libudbc.so.3
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/doc/udbc.doc ${PREFIX}/share/doc/${PORTNAME}
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/doc/udbc.ini ${PREFIX}/share/doc/${PORTNAME}/udbc.ini.sample
    @${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
    @${SED} "s,../,${PREFIX}/," <${WRKDIR}/udbcsdk/examples/Makefile >${PREFIX}/share/examples/${PORTNAME}/Makefile
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/examples/udbctest.c ${PREFIX}/share/examples/${PORTNAME}

post-install:
    @${SED} "s'PREFIX'${PREFIX}'" <pkg-message
.endif

.include <bsd.port.mk>