summaryrefslogtreecommitdiff
path: root/graphics/enfle/Makefile
blob: d289e4d8d84b20f61727d3f2216f4674e38bd4fd (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
# New ports collection makefile for:	enfle
# Date created:		Tue Sep 28 02:25:17 JST 1999
# Whom:			Yuki Sawada <samy@goldmoon.org>
#
# $FreeBSD$
#

PORTNAME=	enfle
PORTVERSION=	20010130
CATEGORIES=	graphics
MASTER_SITES=	http://enfle.fennel.org/files/stable/ \
		ftp://ftp.goldmoon.org/pub/FreeBSD/ports/distfiles/

MAINTAINER=	samy@goldmoon.org
COMMENT=	Simple plugin-based graphics viewer

LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
		jpeg.9:${PORTSDIR}/graphics/jpeg \
		mng.1:${PORTSDIR}/graphics/libmng \
		ungif.5:${PORTSDIR}/graphics/libungif \
		arc.1:${PORTSDIR}/archivers/libarc
.if !exists(/usr/bin/bzip2)
LIB_DEPENDS+=	bz2.1:${PORTSDIR}/archivers/bzip2
.endif

USE_BZIP2=	yes
USE_X_PREFIX=	yes
USE_LIBTOOL=	yes
USE_PERL5_BUILD=yes
CONFIGURE_ARGS=	--enable-all-plugins \
		--enable-plugins-dir \
		--enable-loader=ungif \
		--disable-static

MAN1=		enfle.1

.include <bsd.port.pre.mk>

post-patch:
	${PERL} -pi -e 's/^(.*_la_LDFLAGS = -module)$$/\1 -avoid-version/' \
		${WRKSRC}/plugins/*/*/Makefile.in

post-install:
	${INSTALL_MAN} ${WRKSRC}/enfle.1 ${PREFIX}/man/man1

.include <bsd.port.post.mk>