1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/databases/firebird2-server/Makefile
David W. Chapman Jr. 7be362e25e Update MASTER_SITES
PR:		32634
Submitted by:	maintainer
2001-12-09 01:00:48 +00:00

83 lines
2.3 KiB
Makefile

# New ports collection makefile for: Firebird
# Date created: 20 December 2000
# Whom: Geoffrey C. Speicher <geoff@sea-incorporated.com>
#
# $FreeBSD$
#
PORTNAME= firebird
PORTVERSION= 0.9
PORTREVISION= 4
CATEGORIES= databases
MASTER_SITES= http://firebird.sourceforge.net/download/ \
${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=firebird
DISTFILES= firebird-boot-kit.tar.gz \
interbase0.9-4-v5examples.tar.gz \
interbase0.9-4src.tar.gz
MAINTAINER= chris@aims.com.au
WRKSRC= ${WRKDIR}/interbase
INSTALLS_SHLIB= yes
LDCONFIG_DIRS= %%PREFIX%%/firebird/lib
MSG_FILE= ${PKGDIR}/pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
ONLY_FOR_ARCHS= i386
.include <bsd.port.pre.mk>
do-extract:
@${MKDIR} ${WRKDIR}
@( \
cd ${WRKDIR}; ${TAR} -xzf ${DISTDIR}/interbase0.9-4src.tar.gz; \
cd interbase; ${TAR} -xzf ${DISTDIR}/firebird-boot-kit.tar.gz; \
${CP} msgs/msg.gbak misc/msg.gbak \
)
post-patch:
@${SED} 's|%%PREFIX%%|${PREFIX}|g' ${MSG_FILE} > ${PKGMESSAGE}
.if ${OSVERSION} >= 500016 || ${OSVERSION} >= 430001
@${PERL} -pi -e 's,\-ldescrypt,\-lcrypt,g' \
${WRKSRC}/builds/original/prefix.freebsd
.else
@${PERL} -pi -e 's,^crypt_set_format.*,,' ${WRKSRC}/jrd/enc.c
.endif
do-configure:
@( \
cd ${WRKDIR}/interbase; \
INTERBASE=${WRKDIR}/interbase/interbase; export INTERBASE; \
REFDBPATH=${WRKDIR}/refDatabases; export REFDBPATH; \
${SH} buildBootDatabases; \
${SH} setup_dirs.boot FREEBSD PROD ${WRKDIR}/refDatabases boot; \
)
do-build:
@( \
${ECHO} '#!/bin/sh'; ${ECHO} \
'[ -d ${LDCONFIG_RUNLIST} ] && ${LDCONFIG} -m ${LDCONFIG_RUNLIST}'; \
) > ${WRKDIR}/000.${PORTNAME}.sh
@( \
cd ${WRKDIR}/interbase; \
INTERBASE=${WRKDIR}/interbase/interbase; export INTERBASE; \
REFDBPATH=${WRKDIR}/refDatabases; export REFDBPATH; \
${SH} boot.freebsd; \
)
do-install:
@( \
cd ${WRKDIR}/interbase; \
${CP} -Rp interbase ${PREFIX}/firebird; \
${RM} ${PREFIX}/firebird/install; \
${RM} ${PREFIX}/firebird/lib/libgds.so.1.0; \
${LN} -fs gds.so ${PREFIX}/firebird/lib/libgds.so.1; \
cd ${PREFIX}/firebird/examples; \
${TAR} -xzf ${DISTDIR}/interbase0.9-4-v5examples.tar.gz; \
${CP} ${FILESDIR}/RELNOTES ${PREFIX}/firebird/; \
${INSTALL_SCRIPT} ${WRKDIR}/000.${PORTNAME}.sh ${PREFIX}/etc/rc.d/ \
)
.include <bsd.port.post.mk>