2011-11-19 04:32:45 -07:00
|
|
|
# $OpenBSD: Makefile,v 1.23 2011/11/19 11:32:45 matthieu Exp $
|
2006-11-25 11:44:16 -07:00
|
|
|
|
2006-11-26 04:54:18 -07:00
|
|
|
FREETYPESRC= ${.CURDIR}/src
|
2006-11-25 11:44:16 -07:00
|
|
|
|
2011-11-19 04:32:45 -07:00
|
|
|
FT_VERSION_INFO= 14.0.8 # Get it from builds/unix/configure.ac
|
2006-12-23 03:42:41 -07:00
|
|
|
|
2006-11-26 04:54:18 -07:00
|
|
|
.ifmake includes
|
|
|
|
SUBDIR= include
|
|
|
|
.endif
|
2006-11-25 11:44:16 -07:00
|
|
|
|
2007-04-07 09:37:50 -06:00
|
|
|
DEBUG?=
|
|
|
|
|
2006-11-26 04:54:18 -07:00
|
|
|
LIB= freetype
|
2006-11-25 11:44:16 -07:00
|
|
|
|
2008-06-22 11:37:35 -06:00
|
|
|
SRCS= ftbase.c ftbbox.c ftbdf.c ftbitmap.c ftdebug.c ftcache.c \
|
2009-03-26 01:31:44 -06:00
|
|
|
ftcid.c ftfstype.c ftgasp.c ftglyph.c \
|
2007-09-08 10:39:54 -06:00
|
|
|
ftgxval.c ftlcdfil.c ftotval.c ftpatent.c \
|
2006-11-26 04:54:18 -07:00
|
|
|
ftinit.c ftlzw.c ftmm.c ftpfr.c ftstroke.c ftsynth.c ftsystem.c \
|
|
|
|
fttype1.c ftwinfnt.c ftxf86.c autofit.c bdf.c cff.c \
|
|
|
|
type1cid.c ftgzip.c pcf.c pfr.c psaux.c pshinter.c psnames.c \
|
2007-09-08 10:39:54 -06:00
|
|
|
raster.c sfnt.c smooth.c truetype.c type1.c type1cid.c type42.c \
|
|
|
|
winfnt.c
|
2006-11-25 11:44:16 -07:00
|
|
|
|
2007-10-27 01:09:48 -06:00
|
|
|
CPPFLAGS+= -I${.CURDIR}/include -I${.CURDIR}/builds/unix -I${.CURDIR}/src/lzw -DFT2_BUILD_LIBRARY
|
2006-11-25 11:44:16 -07:00
|
|
|
|
2006-11-26 04:54:18 -07:00
|
|
|
CLEANFILES+= freetype-config freetype2.pc
|
2006-11-25 11:44:16 -07:00
|
|
|
|
2006-12-02 09:28:48 -07:00
|
|
|
obj: _xenocara_obj
|
|
|
|
|
2006-11-26 04:54:18 -07:00
|
|
|
build:
|
|
|
|
cd ${.CURDIR} && ${MAKE} clean
|
|
|
|
cd ${.CURDIR} && ${SUDO} ${MAKE} includes
|
2006-12-02 09:28:48 -07:00
|
|
|
cd ${.CURDIR} && ${MAKE} depend
|
2006-11-26 04:54:18 -07:00
|
|
|
cd ${.CURDIR} && ${MAKE} all
|
|
|
|
cd ${.CURDIR} && ${SUDO} ${MAKE} install
|
2006-11-25 11:44:16 -07:00
|
|
|
|
2006-11-26 04:54:18 -07:00
|
|
|
includes:: _SUBDIRUSE
|
|
|
|
@cmp -s ${DESTDIR}${X11BASE}/include/ft2build.h \
|
|
|
|
${.CURDIR}/builds/unix/ft2unix.h || \
|
2010-05-08 08:15:29 -06:00
|
|
|
${INSTALL_DATA} ${.CURDIR}/builds/unix/ft2unix.h \
|
2006-11-26 04:54:18 -07:00
|
|
|
${DESTDIR}${X11BASE}/include/ft2build.h
|
|
|
|
|
2007-10-27 01:09:48 -06:00
|
|
|
includes::
|
|
|
|
@cmp -s ${DESTDIR}${X11BASE}/include/freetype2/freetype/config/ftconfig.h \
|
|
|
|
${.CURDIR}/builds/unix/ftconfig.h || \
|
2010-05-08 08:15:29 -06:00
|
|
|
${INSTALL_DATA} ${.CURDIR}/builds/unix/ftconfig.h \
|
2007-10-27 01:09:48 -06:00
|
|
|
${DESTDIR}${X11BASE}/include/freetype2/freetype/config/ftconfig.h
|
|
|
|
|
2006-11-26 04:54:18 -07:00
|
|
|
includes:: freetype2.pc
|
2010-05-08 08:15:29 -06:00
|
|
|
${INSTALL_DATA} freetype2.pc ${DESTDIR}${X11BASE}/lib/pkgconfig
|
2006-11-26 04:54:18 -07:00
|
|
|
|
|
|
|
includes:: freetype-config
|
|
|
|
${INSTALL} ${INSTALL_COPY} -m 755 -o $(BINOWN) -g $(BINGRP) \
|
2010-05-08 08:15:29 -06:00
|
|
|
freetype-config ${DESTDIR}${X11BASE}/bin
|
2006-11-26 04:54:18 -07:00
|
|
|
|
2006-12-23 03:42:41 -07:00
|
|
|
freetype2.pc: freetype2.in Makefile
|
2007-05-29 09:37:57 -06:00
|
|
|
sed -e s%@prefix@%${X11BASE}% -e s%@exec_prefix@%${X11BASE}% \
|
2006-12-23 03:42:41 -07:00
|
|
|
-e s%@ft_version@%${FT_VERSION_INFO}% \
|
2006-11-26 04:54:18 -07:00
|
|
|
-e s%@includedir@%${INCSDIR}% -e s%@libdir@%${LIBDIR}% \
|
2007-09-08 10:39:54 -06:00
|
|
|
-e s%@LIBZ@%-lz% -e s%@FT2_EXTRA_LIBS@%% \
|
2011-07-18 14:29:56 -06:00
|
|
|
-e s%@LIBBZ2@%% \
|
2007-09-08 10:39:54 -06:00
|
|
|
< ${.CURDIR}/builds/unix/freetype2.in > freetype2.pc
|
2006-11-26 04:54:18 -07:00
|
|
|
|
|
|
|
freetype-config: freetype-config.in
|
2007-05-29 09:37:57 -06:00
|
|
|
sed -e s%@prefix@%${X11BASE}% -e s%@exec_prefix@%${X11BASE}% \
|
2006-11-26 04:54:18 -07:00
|
|
|
-e s%@includedir@%${INCSDIR}% -e s%@libdir@%${LIBDIR}% \
|
2007-09-08 10:39:54 -06:00
|
|
|
-e s%@LIBZ@%-lz% -e s%@FT2_EXTRA_LIBS@%% \
|
2011-07-18 14:29:56 -06:00
|
|
|
-e s%@LIBBZ2@%% \
|
2007-09-08 10:39:54 -06:00
|
|
|
-e s%@enable_shared@%yes% \
|
2006-11-26 04:54:18 -07:00
|
|
|
-e 's%@hardcode_libdir_flag_spec@%%' \
|
2008-08-20 23:09:08 -06:00
|
|
|
-e 's%@ft_version@%${FT_VERSION_INFO}%' -e 's%@wl@%%' \
|
2006-11-26 04:54:18 -07:00
|
|
|
< ${.CURDIR}/builds/unix/freetype-config.in \
|
|
|
|
> freetype-config
|
|
|
|
|
2006-11-29 11:03:09 -07:00
|
|
|
NOPROFILE=
|
|
|
|
|
2006-11-26 04:54:18 -07:00
|
|
|
.include <bsd.lib.mk>
|
|
|
|
.include <bsd.xorg.mk>
|
|
|
|
|
2007-10-27 01:09:48 -06:00
|
|
|
.PATH: ${.CURDIR}/builds/unix
|
2006-11-26 04:54:18 -07:00
|
|
|
.PATH: ${FREETYPESRC}/autofit
|
|
|
|
.PATH: ${FREETYPESRC}/base
|
|
|
|
.PATH: ${FREETYPESRC}/bdf
|
2007-09-08 10:39:54 -06:00
|
|
|
.PATH: ${FREETYPESRC}/cache
|
2006-11-26 04:54:18 -07:00
|
|
|
.PATH: ${FREETYPESRC}/cff
|
|
|
|
.PATH: ${FREETYPESRC}/cid
|
|
|
|
.PATH: ${FREETYPESRC}/gzip
|
|
|
|
.PATH: ${FREETYPESRC}/lzw
|
|
|
|
.PATH: ${FREETYPESRC}/pcf
|
|
|
|
.PATH: ${FREETYPESRC}/pfr
|
|
|
|
.PATH: ${FREETYPESRC}/psaux
|
|
|
|
.PATH: ${FREETYPESRC}/pshinter
|
|
|
|
.PATH: ${FREETYPESRC}/psnames
|
|
|
|
.PATH: ${FREETYPESRC}/raster
|
|
|
|
.PATH: ${FREETYPESRC}/sfnt
|
|
|
|
.PATH: ${FREETYPESRC}/smooth
|
|
|
|
.PATH: ${FREETYPESRC}/truetype
|
|
|
|
.PATH: ${FREETYPESRC}/type1
|
|
|
|
.PATH: ${FREETYPESRC}/type42
|
|
|
|
.PATH: ${FREETYPESRC}/winfonts
|
|
|
|
|
|
|
|
.include <bsd.subdir.mk>
|
2006-11-25 11:44:16 -07:00
|
|
|
|