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
|
2005-02-16 13:56:29 +00:00
|
|
|
PORTVERSION= 4.9.11.20041224
|
2003-10-08 02:57:03 +00:00
|
|
|
PORTEPOCH= 1
|
2003-01-01 15:44:06 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ftp://dickey.his.com/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
|
|
|
|
|
2003-06-08 21:06:22 +00:00
|
|
|
MAINTAINER= ports@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
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2004-04-10 17:26:55 +00:00
|
|
|
NOPRECIOUSMAKEVARS= yes # Otherwise 'make readmes' is broken
|
2003-01-01 15:44:06 +00:00
|
|
|
|
|
|
|
.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
|
2003-01-01 21:41:47 +00:00
|
|
|
LDFLAGS+= -Wl,-rpath,${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV+= TERMINFO="${TERMINFO}"\
|
|
|
|
CPPFLAGS="${CPPFLAGS}"\
|
|
|
|
LIBS="${LIBS}"\
|
|
|
|
LDFLAGS="${LDFLAGS}"
|
2003-01-01 15:44:06 +00:00
|
|
|
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
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
.include "${.CURDIR}/maninfo.mk"
|
|
|
|
|
2005-02-18 16:14:31 +00:00
|
|
|
post-patch:
|
|
|
|
. for f in cli/Makefile.in demos/Makefile.in examples/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(LINKIT.*\)|& \&\& ${STRIP_CMD} $$@|' ${WRKSRC}/$f
|
|
|
|
@${RM} ${WRKSRC}/$f.bak
|
|
|
|
. endfor
|
|
|
|
|
2003-01-01 15:44:06 +00:00
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|^DOCUMENT_DIR.*$$|DOCUMENT_DIR=${DOCSDIR}|' \
|
|
|
|
-e 's|^CDKSHLIB.*$$|CDKSHLIB=$$(SONAME)|' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${MKDIR} ${EXAMPLESDIR}/cli
|
|
|
|
cd ${WRKSRC}/cli; \
|
|
|
|
${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${EXAMPLESDIR}/cli
|
|
|
|
${MKDIR} ${EXAMPLESDIR}/demos
|
|
|
|
cd ${WRKSRC}/demos; \
|
|
|
|
${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${EXAMPLESDIR}/demos
|
|
|
|
${MKDIR} ${EXAMPLESDIR}/examples
|
|
|
|
cd ${WRKSRC}/examples; \
|
|
|
|
${FIND} . | ${CPIO} -pdm -R ${LIBOWN}:${LIBGRP} ${EXAMPLESDIR}/examples
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|