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

PORTNAME=   gnustep-examples
PORTVERSION=    1.0.0
CATEGORIES= misc
MASTER_SITES=   ${MASTER_SITE_GNUSTEP}
MASTER_SITE_SUBDIR= core

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

GNUSTEP_PREFIX?=    ${LOCALBASE}/GNUstep
PREFIX=     ${GNUSTEP_PREFIX}
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
USE_REINPLACE=  yes

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

post-patch:
    ${REINPLACE_CMD} -e 's|)/Makefiles|)/Library/Makefiles|' \
        ${WRKSRC}/gui/GPuzzle/GNUmakefile

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

.include <bsd.port.mk>