/
Makefile
42 lines (33 loc) · 1.02 KB
/
Makefile
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
PORTNAME= cdk
DISTVERSION= 5.0-20230201
PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= https://invisible-island.net/archives/${PORTNAME}/\
https://invisible-mirror.net/archives/${PORTNAME}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Curses Development Kit for speedy development of full screen programs
WWW= https://invisible-island.net/cdk/
LICENSE= BSD4CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake ncurses tar:tgz
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
PORTDOCS= README
MAKE_JOBS_UNSAFE= yes
CONFIGURE_ARGS+=--with-ncurses
ALL_TARGET= default cdkshlib
INSTALL_TARGET= install installCDKSHLibrary
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|gcc|$$(CC)| ; \
/^CDKREADME/s| COPYING||' ${WRKSRC}/Makefile.in
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libcdk*.so
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC} && \
${COPYTREE_SHARE} "cli demos examples" \
${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>