2003-01-01 15:44:06 +00:00
|
|
|
# ex:ts=8
|
|
|
|
# New ports collection makefile for: cdk
|
|
|
|
# Date created: 6 May 1999
|
|
|
|
# Whom: Andrey Zakhvatov
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cdk
|
2010-11-19 11:07:35 +00:00
|
|
|
PORTVERSION= 5.0.20090215
|
2003-10-08 02:57:03 +00:00
|
|
|
PORTEPOCH= 1
|
2003-01-01 15:44:06 +00:00
|
|
|
CATEGORIES= devel
|
2010-11-19 11:07:35 +00:00
|
|
|
MASTER_SITES= ftp://invisible-island.net/cdk/
|
2005-02-16 13:56:29 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
|
2003-01-01 15:44:06 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2010-11-19 11:07:35 +00:00
|
|
|
MAINTAINER= bapt@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Curses Development Kit for speedy development of full screen programs
|
2003-01-01 15:44:06 +00:00
|
|
|
|
2010-11-19 11:07:35 +00:00
|
|
|
LICENSE= BSD
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2003-01-01 15:44:06 +00:00
|
|
|
USE_GMAKE= yes
|
2011-04-11 08:34:17 +00:00
|
|
|
USE_NCURSES= yes
|
2003-01-01 15:44:06 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2008-09-04 00:06:22 +00:00
|
|
|
PORTDOCS= COPYING EXPANDING INSTALL NOTES README TODO
|
2009-11-19 22:07:43 +00:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2003-01-01 15:44:06 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--with-ncurses
|
|
|
|
ALL_TARGET= default examples demos cli cdkshlib
|
|
|
|
INSTALL_TARGET= install installCDKSHLibrary
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 17:56:05 +00:00
|
|
|
USE_LDCONFIG= yes
|
2003-01-01 15:44:06 +00:00
|
|
|
|
|
|
|
.include "${.CURDIR}/maninfo.mk"
|
|
|
|
|
2008-09-04 00:06:22 +00:00
|
|
|
post-extract:
|
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in
|
|
|
|
.endif
|
|
|
|
|
2005-02-18 16:14:31 +00:00
|
|
|
post-patch:
|
2011-06-20 16:58:07 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/doc/cdk|/share/doc/cdk| ; s|VERSION)|VERSION_MAJOR)|' \
|
|
|
|
-e 's|gcc|${CC}|g' ${WRKSRC}/Makefile.in
|
2003-01-01 15:44:06 +00:00
|
|
|
|
2008-09-04 00:06:22 +00:00
|
|
|
pre-install:
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
PLIST_SUB+= EXAMPLES=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EXAMPLES="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-01-01 15:44:06 +00:00
|
|
|
post-install:
|
2008-09-04 00:06:22 +00:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${INSTALL} -d ${EXAMPLESDIR}
|
|
|
|
${INSTALL} -d ${EXAMPLESDIR}/cli
|
2003-01-01 15:44:06 +00:00
|
|
|
cd ${WRKSRC}/cli; \
|
|
|
|
${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${EXAMPLESDIR}/cli
|
2008-09-04 00:06:22 +00:00
|
|
|
${INSTALL} -d ${EXAMPLESDIR}/demos
|
2003-01-01 15:44:06 +00:00
|
|
|
cd ${WRKSRC}/demos; \
|
|
|
|
${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${EXAMPLESDIR}/demos
|
2008-09-04 00:06:22 +00:00
|
|
|
${INSTALL} -d ${EXAMPLESDIR}/examples
|
2003-01-01 15:44:06 +00:00
|
|
|
cd ${WRKSRC}/examples; \
|
|
|
|
${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${EXAMPLESDIR}/examples
|
2008-09-04 00:06:22 +00:00
|
|
|
.endif
|
2003-01-01 15:44:06 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|