aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gd1/files/Makefile.lib
blob: 78c024d321f3b39f77aa103849fb4ea1a77e1ff2 (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
# $FreeBSD$

PREFIX?=    /usr/local
SHLIB_VER?= 2

LIB=        gd1
LIBDIR=     ${PREFIX}/lib
SHLIB_MAJOR=    ${SHLIB_VER}
SHLIB_MINOR=    0
NOPROFILE=  yes
NOOBJ=      yes

INCS=       gd.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h \
        gdfonts.h gdfontt.h
INCSDIR=    ${PREFIX}/include/gd
INCDIR=     ${INSCDIR}  # for pre-bsd.incs.mk API

SRCS=       gd.c gd_gd.c gd_gd2.c gd_io.c gd_io_dp.c gd_io_file.c gd_ss.c \
        gd_io_ss.c gd_png.c gd_jpeg.c gdxpm.c gdfontt.c gdfonts.c \
        gdfontmb.c gdfontl.c gdfontg.c gdtables.c gdft.c gdttf.c \
        gdcache.c gdkanji.c wbmp.c gd_wbmp.c gdhelpers.c gd_gif_in.c

CFLAGS+=    -I${.CURDIR} -I${LOCALBASE}/include/freetype2/freetype \
        -I${LOCALBASE}/include/freetype2 -I${LOCALBASE}/include \
        -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DHAVE_LIBZ \
        ${CPPFLAGS}
LDADD=      -L${LOCALBASE}/lib -lfreetype -ljpeg -lpng -lz ${LDFLAGS}

beforeinstall:
    mkdir -p ${INCSDIR}

.include <bsd.lib.mk>