aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gnustep-base/Makefile
blob: 7d9aecb09f9ee2e1597daccb0a6bbf19fb46311a (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
# New ports collection makefile for:    gnustep-base
# Date created:         17 April 2001
# Whom:                 Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gnustep-base
PORTVERSION=    1.6.0
CATEGORIES= lang devel
MASTER_SITES=   ${MASTER_SITE_GNUSTEP} \
        ftp://ftp.gnustep.org/pub/gnustep/%SUBDIR%/ \
        http://archive.progeny.com/gnustep/%SUBDIR%/ \
        ftp://ftp.easynet.nl/mirror/GNUstep/%SUBDIR%/
MASTER_SITE_SUBDIR= core

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    GNUstep Foundation library

LIB_DEPENDS+=   xml2.5:${PORTSDIR}/textproc/libxml2

PREFIX=     ${LOCALBASE}/GNUstep
NO_MTREE=   yes
ETCDIR=     ${LOCALBASE}/etc
USE_AUTOCONF=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-procfs
CONFIGURE_TARGET=
USE_GMAKE=  yes
MAKEFILE=
MAKE_FLAGS= OPTFLAG="${CFLAGS}"
CFLAGS+=    -I${LOCALBASE}/include/libxml2/libxml
BREAKS_IF_PEDANTIC= yes
PLIST_SUB+= MAJORVERSION=${PORTVERSION:C/([0-9]).*/\1/1}
PLIST_SUB+= LOCALBASE=${LOCALBASE}

.include <bsd.port.pre.mk>

USE_GNUSTEP_CONFIGURE=  yes
USE_GNUSTEP_BUILD=  yes
USE_GNUSTEP_INSTALL=    yes
.include "${PORTSDIR}/devel/gnustep/bsd.gnustep.mk"

post-extract:
    @${SED} -e "s=%%PREFIX%%=${LOCALBASE}=" ${FILESDIR}/GNUstep.sh \
        > ${WRKSRC}/GNUstep.sh

post-install:
    -@${MKDIR} ${ETCDIR}/rc.d
    ${INSTALL_SCRIPT} ${FILESDIR}/GNUstep.sh ${ETCDIR}/rc.d
    ${INSTALL_SCRIPT} ${WRKSRC}/GNUstep.sh ${ETCDIR}/rc.d
    ${INSTALL_DATA} ${FILESDIR}/gdomap_if ${ETCDIR}

test:
    @(cd ${WRKSRC}/Testing && . ${SYSTEMDIR}/Makefiles/GNUstep.sh; ${GMAKE})

.include <bsd.port.post.mk>