aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/freeimage/Makefile
blob: 1ed4eea0f3848d6f7bec0b7e378fe3199cc45b7b (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
# New ports collection makefile for:    FreeImage
# Date created:             2005-09-01
# Whom:                 Choe, Cheng-Dae <whitekid@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   freeimage
PORTVERSION=    3.15.0
CATEGORIES= graphics
MASTER_SITES=   SF/${PORTNAME}/Source%20Distribution/${PORTVERSION}
DISTNAME=   FreeImage${PORTVERSION:S/.//g}

MAINTAINER= gahr@FreeBSD.org
COMMENT=    An open source graphics library

USE_ZIP=    yes
USE_DOS2UNIX=   Source/LibOpenJPEG/opj_malloc.h
USE_GMAKE=  yes
USE_LDCONFIG=   yes
WRKSRC=     ${WRKDIR}/FreeImage

PLIST_FILES=    include/FreeImage.h \
        lib/libfreeimage.a \
        lib/libfreeimage-${PORTVERSION}.so \
        lib/libfreeimage.so.3 \
        lib/libfreeimage.so

.include <bsd.port.pre.mk>

.if ${ARCH} == "amd64"
CFLAGS+=    -fPIC
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|/usr|${PREFIX}| ; s|-g root|-g wheel|' \
        ${WRKSRC}/Makefile.gnu

.include <bsd.port.post.mk>