summaryrefslogtreecommitdiff
path: root/editors/cooledit/Makefile
blob: a303a7e7fa1f5c83f5d0f441dba6c251e57df6d5 (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
# New ports collection makefile for:	 cooledit
# Date created:		18 November 1997
# Whom:			brett@peloton.physics.montana.edu
#
# $FreeBSD$
#

PORTNAME=	cooledit
PORTVERSION=	3.14.1
CATEGORIES=	editors
MASTER_SITES= 	${MASTER_SITE_SUNSITE} \
		http://www.netins.net/showcase/Comput-IT/cooledit/src/
MASTER_SITE_SUBDIR=	apps/editors/X

MAINTAINER=	brett@peloton.runet.edu

LIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm \
		intl.1:${PORTSDIR}/devel/gettext

USE_LIBTOOL=	yes
INSTALLS_SHLIBS=	yes
USE_XLIB=       yes
USE_GMAKE=      yes

CONFIGURE_ARGS=	--disable-mail-author --with-libs='-lcrypt -lreadline' \
		--without-included-gettext
CONFIGURE_ENV=	CC="${CC} -I${LOCALBASE}/include" \
		LDFLAGS="-L${LOCALBASE}/lib"

MAN1 = cooledit.1 smalledit.1 coolman.1 coolicon.1

pre-install:
	@${ECHO_MSG} "Installing in ${PREFIX}/bin"
	@if [ ! -f ${PREFIX}/etc/coolicon.config ]; then \
		${INSTALL_SCRIPT} ${WRKSRC}/pixmap/coolicon.config \
		    ${PREFIX}/etc ; \
	fi
	${INSTALL_SCRIPT} ${WRKSRC}/pixmap/coolicon.config \
		${PREFIX}/etc/coolicon.config.dist

post-install:
	@${LN} -sf ${PREFIX}/share/cooledit/global.py \
		${PREFIX}/share/coolicon/global.py

.include <bsd.port.mk>