summaryrefslogtreecommitdiff
path: root/x11-fm/endeavour/Makefile
blob: 2db101a9caa429e66c5c54bc178a3b747615351a (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
54
55
56
57
58
# New ports collection makefile for:	endeavour
# Date created:		7 Oct 1999
# Whom:			Chris Piazza <cpiazza@FreeBSD.org>
#
# $FreeBSD$
# $Tecnik: ports/x11-fm/endeavour/Makefile,v 1.3 2006/02/01 17:41:32 itetcu Exp $
#

PORTNAME=	endeavour
PORTVERSION=	1.13.0
PORTREVISION=	3
CATEGORIES=	x11-fm
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	arved
DISTNAME=	${PORTNAME}${PORTVERSION}

MAINTAINER=	itetcu@FreeBSD.org
COMMENT=	A graphical file manager and image viewer aimed towards new users

DEPRECATED=	depreciated upstream, should be replaced by endeavour 2; hardcoded X11BASE

PLIST_FILES=	bin/endeavour
USE_BZIP2=	yes
USE_X_PREFIX=	yes
USE_XPM=	yes
USE_GNOME=	imlib
USE_GMAKE=	yes
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	unix
MAKE_ARGS=	PREFIX="${PREFIX}" CC="${CC}" CPP="${CXX}" \
		CFLAGS="${CFLAGS} -D__USE_BSD -DUSE_XSHM -DUSE_IMLIB" \
		INC_DIRS="`imlib-config --cflags` -I${X11BASE}/include" \
		LIBS="`imlib-config --libs` -lXpm" \
		LIB_DIRS="-L${LOCALBASE}/lib -L${X11BASE}/lib"

DEPRECATED=	Development ceased, this port should be updated to Endeavour Mark II
EXPIRATION_DATE=	2007-07-31

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 440003 || ${OSVERSION} >= 500000 && ${OSVERSION} < 500027
CFLAGS+=	-DNEED_STRCASESTR
.endif

pre-patch:
	@${REINPLACE_CMD} -e 's|make |\$$\(MAKE\) |g' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|/usr/X11R6|$(X11BASE)|g' \
		${WRKSRC}/endeavour/platforms.ini ${WRKSRC}/pconf/platforms.ini
	@${FIND} ${WRKSRC}/endeavour -type f | ${XARGS} ${REINPLACE_CMD} -e \
		's|#include <malloc.h>||g ; \
		 s|#include <asm/types.h>||g ; \
		 s|#include <sys/bitypes.h>||g ; \
		 s|umode_t|unsigned short|g'

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/endeavour/endeavour ${PREFIX}/bin

.include <bsd.port.post.mk>