aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/feh/Makefile
blob: 7260079ad625669b0c3b16cb0ec76558b27d6313 (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
# ports collection makefile for:    feh
# Date created:             16 Oct 2000
# Whom:                 Jeremy Norris <ishmael27@home.com>
#
# $FreeBSD$
#

PORTNAME=   feh
PORTVERSION=    1.2.7
CATEGORIES= graphics
MASTER_SITES=   http://www.linuxbrit.co.uk/downloads/

MAINTAINER= ports@FreeBSD.org
COMMENT=    An image viewer that utilizes Imlib2

LIB_DEPENDS=    giblib.1:${PORTSDIR}/graphics/giblib

USE_X_PREFIX=   yes
USE_PERL5=  yes
GNU_CONFIGURE=  yes
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LDFLAGS="-L${LOCALBASE}/lib"

MAN1=       feh.1

post-patch:
    @${PERL} -pi.bak -e 's|^LDFLAGS =.*$$|LDFLAGS = \@LDFLAGS\@|g ; \
         s|^INCLUDES =.*$$|INCLUDES = -I. -I$$(includedir)|g ; \
         s|-man install-docsDATA|-man|g' ${WRKSRC}/Makefile.in

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in AUTHORS ChangeLog README TODO
    ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>