1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/devel/cdk/Makefile
Martin Wilke 3e4ed01146 - 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

64 lines
1.8 KiB
Makefile

# 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= ftp://invisible-island.net/cdk/ \
http://fresh.t-systems-sfr.com/linux/src/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
EXTRACT_SUFX= .tgz
MAINTAINER= MrL0Lz@gmail.com
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
.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-patch:
@${REINPLACE_CMD} -e 's|/doc/cdk|/share/doc/cdk| ; s|VERSION)|VERSION_MAJOR)|' ${WRKSRC}/Makefile.in
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 "${.CURDIR}/mancompress.mk"
.include <bsd.port.post.mk>