aboutsummaryrefslogtreecommitdiffstats
path: root/databases/sybase-ocsd/Makefile
blob: d73e765cc1a87ed1626ccb10fe26788d0fff22f7 (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
# New ports collection makefile for:    sybase-openclient
# Date created:         Jul 25, 2002
# Whom:             mi
#
# $FreeBSD$
#

PORTNAME=   sybase-ocsd
PORTVERSION=    10.0.4.6
CATEGORIES= databases
MASTER_SITES=   http://linux.sybase.com/REL11033/ \
        http://virtual-estates.net/~mi/port-stuff/
DISTFILES=  ${PORTNAME}-${PORTVERSION:R}-FreeBSD-${PORTVERSION:E}.i386.tgz \
        LICENSE ${RESTRICTED_FILES}
DIST_SUBDIR=    sybase
EXTRACT_ONLY=

MAINTAINER= mi@aldan.algebra.com

NO_BUILD=   no sources :-\
WRKSRC=     ${WRKDIR}/sybase
ONLY_FOR_ARCHS= i386
NO_PACKAGE= Packaging is pointless, the port does not build anything

# The file below contains the locale data files missing from the official
# distribution. Sybase noticed the mistake in
#   http://www.sybase.com/detail/1,6904,2894,00.html
# but the only reasonable workaround suggested there points to a broken
# link. This file is just a subset of a much bigger
#   http://linux.sybase.com/REL11033/sybase-ase-11.0.3.3-FreeBSD-6.i386.tgz
# which, despite its name, contains only Linux binaries and kernel patches.

# I follow the spirit of the license by making the locale file available
# unaltered, but don't want FreeBSD to appear to disrespect the letter.
# A comment from Sybase would be most welcome as well as the newer version
# of the binaries for all of the FreeBSD platforms.
RESTRICTED_FILES=sybase-11.0.3.3-locale.tar.bz2

do-install:
    ${TAR} -xpzf ${_DISTDIR}/${DISTFILES:M*.tgz} -C ${PREFIX} \
        sybase/include sybase/lib sybase/devlib
    ${TAR} -xpyf ${_DISTDIR}/${DISTFILES:M*locale*} -C ${PREFIX}/sybase
    ${INSTALL_DATA} ${FILESDIR}/interfaces.sample ${PREFIX}/sybase/
    -@${SED} 's|PREFIX|${PREFIX}|g' < pkg-message

.include <bsd.port.mk>