summaryrefslogtreecommitdiff
path: root/devel/yacl/Makefile
blob: 61caa395fe212a5cc10d8821b8a04d6945968556 (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
58
59
60
61
62
63
# New ports collection makefile for:	YACL
# Date created:		6 March 1998
# Whom:			Jeroen Hogeveen <albast@xs4all.nl>
#
# $FreeBSD$
#

PORTNAME=		yacl
PORTVERSION=		1.7b
CATEGORIES=		devel
MASTER_SITES=		ftp://ftp.cs.sc.edu/pub/yacl/
DISTNAME=		yacl-0170-beta

DEPRECATED=		"master site disappeared, no trace under sc.edu"
EXPIRATION_DATE=	2005-08-31

MAINTAINER=		ports@FreeBSD.org
COMMENT=	Portable programming library for C++

NO_WRKSUBDIR=		yes
USE_ZIP=		yes
MAKE_ENV=		YACLPATH=${WRKDIR}

MAKEFILE=		gnuc.mak
ALL_TARGET=		yacl

USE_MOTIF=		true

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500113
BROKEN=		"Does not compile (bad C++ code)"
.endif

post-build:
	@(cd ${WRKSRC}/apps/bmpview; ${MAKE} ${MAKE_ENV} -f gnuc.mak)
	@(cd ${WRKSRC}/apps/dlged; ${MAKE} ${MAKE_ENV} -f gnuc.mak)

do-install:
# don't split up base directory; keep compilation semantics.
	@${MKDIR} ${PREFIX}/lib/yacl ${PREFIX}/share/yacl \
	${PREFIX}/share/yacl/apps ${PREFIX}/share/yacl/base \
	${PREFIX}/include/yacl ${PREFIX}/include/yacl/io \
	${PREFIX}/include/yacl/ui
	@${CP} -R ${WRKSRC}/lib/* ${PREFIX}/lib/yacl
	@${CP} -R ${WRKSRC}/basedemo ${WRKSRC}/contrib ${WRKSRC}/doc \
	${WRKSRC}/control ${WRKSRC}/readme.txt ${WRKSRC}/uidemo \
	${PREFIX}/share/yacl
	@${CP} ${WRKSRC}/base/*.h ${WRKSRC}/base/*.cxx ${PREFIX}/share/yacl/base
	@${CP} ${WRKSRC}/io/*.h ${PREFIX}/include/yacl/io
	@${CP} ${WRKSRC}/ui/*.h ${PREFIX}/include/yacl/ui
	@${CP} ${WRKSRC}/apps/bmpview/bmpview ${WRKSRC}/apps/dlged/dlged \
	${PREFIX}/share/yacl/apps
	@( cd ${PREFIX}/share/yacl; ${LN} -s ${PREFIX}/lib/yacl lib; \
	${LN} -s ${PREFIX}/include/yacl/io; ${LN} -s ${PREFIX}/include/yacl/ui )
	@${ECHO_MSG} "Done. Don't forget to set your YACLPATH environment "
	@${ECHO_MSG} "variable to ${PREFIX}/share/yacl!"

post-install:
	@${STRIP_CMD} ${PREFIX}/share/yacl/apps/bmpview
	@${STRIP_CMD} ${PREFIX}/share/yacl/apps/dlged

.include <bsd.port.post.mk>