1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/devel/pdcurses-the/Makefile
Alejandro Pulver a3907aec44 - Use 2 as the shared library major version.
- Install shared library as libXCurses.so.2, then symlink to libXCurses.so
  (not the other way around).
2006-08-09 20:14:32 +00:00

54 lines
1.2 KiB
Makefile

# New ports collection makefile for: pdcurses
# Date created: 1 Jul 2006
# Whom: alepulver
#
# $FreeBSD$
#
PORTNAME= pdcurses
PORTVERSION= 2.8
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= PDCurses-${PORTVERSION}
MAINTAINER= alepulver@FreeBSD.org
COMMENT= Curses library implementation for Win32, DOS, OS/2 and X11
USE_LDCONFIG= yes
USE_XLIB= yes
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>