blob: 8f9a510b92fc873c5f890f2a46f449da79f1313c (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
# ex:ts=8
# New ports collection makefile for: cdk
# Date created: 6 May 1999
# Whom: Andrey Zakhvatov
#
# $FreeBSD$
#
PORTNAME= cdk
PORTVERSION= 5.0.20050424
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= LOCAL/beech
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= Curses Development Kit for speedy development of full screen programs
USE_GMAKE= yes
GNU_CONFIGURE= yes
NOPRECIOUSMAKEVARS= yes # Otherwise 'make readmes' is broken
NOPRECIOUSSOFTMAKEVARS= yes # to many _MLINKS
PORTDOCS= COPYING EXPANDING INSTALL NOTES README TODO
.include <bsd.port.pre.mk>
.if exists(${LOCALBASE}/include/ncurses/ncurses.h)
TERMINFO= ${LOCALBASE}/share/misc/terminfo
CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include/ncurses
LIBS+= -L${LOCALBASE}/lib -lncurses
LDFLAGS+= -Wl,-rpath,${LOCALBASE}/lib
CONFIGURE_ENV+= TERMINFO="${TERMINFO}"\
CPPFLAGS="${CPPFLAGS}"\
LIBS="${LIBS}"\
LDFLAGS="${LDFLAGS}"
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
.endif # exists(${LOCALBASE}/include/ncurses/ncurses.h)
CONFIGURE_ARGS+=--with-ncurses
ALL_TARGET= default examples demos cli cdkshlib
INSTALL_TARGET= install installCDKSHLibrary
USE_LDCONFIG= yes
.include "${.CURDIR}/maninfo.mk"
post-extract:
.if defined(NOPORTDOCS)
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/doc/cdk|/share/doc/cdk| ; s|VERSION)|VERSION_MAJOR)|' ${WRKSRC}/Makefile.in
pre-install:
.if !defined(NOPORTEXAMPLES)
PLIST_SUB+= EXAMPLES=""
.else
PLIST_SUB+= EXAMPLES="@comment "
.endif
post-install:
.if !defined(NOPORTEXAMPLES)
${INSTALL} -d ${EXAMPLESDIR}
${INSTALL} -d ${EXAMPLESDIR}/cli
cd ${WRKSRC}/cli; \
${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${EXAMPLESDIR}/cli
${INSTALL} -d ${EXAMPLESDIR}/demos
cd ${WRKSRC}/demos; \
${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${EXAMPLESDIR}/demos
${INSTALL} -d ${EXAMPLESDIR}/examples
cd ${WRKSRC}/examples; \
${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${EXAMPLESDIR}/examples
.endif
.include "${.CURDIR}/mancompress.mk"
.include <bsd.port.post.mk>
|