aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/openjpeg/Makefile
blob: 9d01f1c8ad82367489e9606f3edf0c653b3a5acc (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
# New ports collection makefile for:    openjpeg
# Date created:     2007-01-13
# Whom:         trasz <trasz@pin.if.uz.zgora.pl>
#
# $FreeBSD$
#

PORTNAME=   openjpeg
PORTVERSION=    1.2
CATEGORIES= graphics
MASTER_SITES=   http://www.openjpeg.org/ \
        ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= trasz
DISTNAME=   ${PORTNAME}_v${PORTVERSION:S/./_/g}

MAINTAINER= trasz@FreeBSD.org
COMMENT=    An open-source JPEG 2000 codec

USE_GMAKE=  yes
USE_LDCONFIG=   yes
WRKSRC=     ${WRKDIR}/trunk

PLIST_FILES=    include/openjpeg.h \
        lib/libopenjpeg.a \
        lib/libopenjpeg.so.${SHLIB_VER} \
        lib/libopenjpeg.so

SHLIB_VER=  2

do-install:
        ${INSTALL_DATA} ${WRKSRC}/libopenjpeg/openjpeg.h ${PREFIX}/include
        ${INSTALL_DATA} ${WRKSRC}/libopenjpeg.a ${PREFIX}/lib
        ${INSTALL_PROGRAM} ${WRKSRC}/libopenjpeg-2.1.2.0.so \
            ${PREFIX}/lib/libopenjpeg.so.${SHLIB_VER}
        cd ${PREFIX}/lib && \
            ${LN} -sf libopenjpeg.so.${SHLIB_VER} libopenjpeg.so

.include <bsd.port.mk>