aboutsummaryrefslogtreecommitdiffstats
path: root/databases/libudbc/Makefile
blob: 2a7df9e4ba8895f93e39ae95afab93f185d9bb7c (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
# 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.com/open41/ \
        ftp://www.kuzbass.ru/pub/FreeBSD/ports/distfiles/
DISTNAME=   f6kuzzzz
EXTRACT_SUFX=   .taz

MAINTAINER= eugen@grosbein.pp.ru

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

RESTRICTED= 'Downloading and redistribution terms are unclear'
NO_CDROM=   'Downloading and redistribution terms are unclear'
NO_PACKAGE= '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(NOPORTSDOC)
    @${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}
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/examples/Makefile ${PREFIX}/share/examples/${PORTNAME}/Makefile
    @${PERL} -pi -e "s,../,${PREFIX}/," ${PREFIX}/share/examples/${PORTNAME}/Makefile
    @${INSTALL_DATA} ${WRKDIR}/udbcsdk/examples/udbctest.c ${PREFIX}/share/examples/${PORTNAME}

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

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 400000
BROKEN=     "Systems prior to 4.x are not supported"
.endif

.include <bsd.port.post.mk>