aboutsummaryrefslogtreecommitdiffstats
path: root/misc/gnustep-examples/Makefile
blob: abeea7aab32e5e00e1c5a13806d69794617deb7e (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
# New ports collection makefile for:    gnustep-examples
# Date created:         15 Mar 2003
# Whom:                 dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
#

PORTNAME=   gnustep-examples
PORTVERSION=    0.9.7
CATEGORIES= misc
MASTER_SITES=   ${MASTER_SITE_GNUSTEP} \
        ftp://ftp.gnustep.org/pub/gnustep/%SUBDIR%/
MASTER_SITE_SUBDIR= core

MAINTAINER= dinoex@FreeBSD.org
COMMENT=    GNUstep example applications

PREFIX=     ${LOCALBASE}/GNUstep
NO_MTREE=   yes
WRKSRC=     ${WRKDIR}/${DISTNAME}
GUN_CONFIGURE=  yes
USE_GMAKE=  yes
USE_GNUSTEP=    yes
USE_GNUSTEP_BACK=   yes
USE_GNUSTEP_BUILD=  yes
USE_GNUSTEP_INSTALL=    yes
MAKEFILE=   GNUmakefile

MAKE_APPS=  Finger GFractal GPuzzle HostAddress
INSTALL_APPS=   Finger GFractal GPuzzle HostAddress

post-build:
.for i in ${MAKE_APPS}
    @(cd ${WRKSRC}/gui/${i}; . ${SYSMAKEDIR}/GNUstep.sh; \
        ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
.endfor

post-install:
.for i in ${INSTALL_APPS}
    @(cd ${WRKSRC}/gui/${i}; . ${SYSMAKEDIR}/GNUstep.sh; \
        ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
.endfor
.if defined(PARALLEL_PACKAGE_BUILD) || defined(BATCH) || defined(CLEAN_ROOT)
    rm -rf /root/GNUstep
.endif

.include <bsd.port.mk>