summaryrefslogtreecommitdiff
path: root/devel/pdcurses-the/Makefile
blob: f6d7fa7840426c054df68cee5bc3c74c4f2cffdd (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
# New ports collection makefile for:	pdcurses
# Date created:				1 Jul 2006
# Whom:					alepulver
#
# $FreeBSD$
#

PORTNAME=	pdcurses
PORTVERSION=	3.3
PORTREVISION=	1
CATEGORIES=	devel
MASTER_SITES=	SF
DISTNAME=	PDCurses-${PORTVERSION}

MAINTAINER=	alepulver@FreeBSD.org
COMMENT=	Curses library implementation for Win32, DOS, OS/2 and X11

USE_LDCONFIG=	yes
USE_XORG=	x11 xext sm ice xt xaw8
GNU_CONFIGURE=	yes

OPTIONS=	DEBUG "Enable debugging support" off \
		LATIN1 "Enable support for Latin1 keys" off \
		NEXTAW "Link with NeXtaw" off \
		XAW3D "Link with Xaw3d" off

.include <bsd.port.pre.mk>

.for opt in DEBUG LATIN1
.   if defined(WITH_${opt})
CONFIGURE_ARGS+=--enable-${opt:L}
.   endif
.endfor

.if defined(WITH_NEXTAW)
LIB_DEPENDS+=	neXtaw.${XAWVER}:${PORTSDIR}/x11-toolkits/neXtaw
CONFIGURE_ARGS+=--with-nextaw
.endif

.if defined(WITH_XAW3D)
LIB_DEPENDS+=	Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
CONFIGURE_ARGS+=--with-xaw3d
.endif

post-patch:
	@${REINPLACE_CMD} -e \
		's|$$(libdir)/$$(SHLPRE)$$(SHLFILE)$$(SHLPST)|&.2|' \
		${WRKSRC}/Makefile.in

post-install:
	@cd ${PREFIX}/lib && ${LN} -sf libXCurses.so.2 libXCurses.so

.include <bsd.port.post.mk>