2017-12-15 12:29:11 -07:00
|
|
|
# $OpenBSD: Makefile,v 1.50 2017/12/15 19:29:11 dcoppa 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
|
|
|
|
2012-10-13 11:16:20 -06:00
|
|
|
# Get it from builds/unix/configure.ac
|
2017-12-15 12:29:11 -07:00
|
|
|
FT_VERSION_INFO= 21.0.15
|
2017-06-23 10:15:17 -06:00
|
|
|
|
2012-10-29 14:15:29 -06:00
|
|
|
INSTALL_PROGRAM = ${INSTALL} ${INSTALL_COPY} -m 755 -o $(BINOWN) -g $(BINGRP)
|
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 \
|
2015-06-28 02:27:43 -06:00
|
|
|
fttype1.c ftwinfnt.c ftfntfmt.c autofit.c bdf.c cff.c \
|
2014-02-16 01:10:36 -07:00
|
|
|
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
|
|
|
|
|
2016-10-10 07:34:43 -06:00
|
|
|
beforedepend: freetype-config freetype2.pc
|
2017-06-18 15:09:07 -06:00
|
|
|
BUILDFIRST = freetype-config freetype2.pc
|
2016-10-10 07:34:43 -06:00
|
|
|
|
|
|
|
beforeinstall:
|
|
|
|
cd ${.CURDIR} ; exec ${MAKE} ${MAKE_FLAGS} includes
|
2006-11-25 11:44:16 -07:00
|
|
|
|
2015-07-19 04:39:19 -06:00
|
|
|
includes: _SUBDIRUSE
|
2014-01-12 08:08:24 -07:00
|
|
|
@cmp -s ${DESTDIR}${X11BASE}/include/freetype2/ft2build.h \
|
|
|
|
${.CURDIR}/include/ft2build.h || \
|
|
|
|
${INSTALL_DATA} ${.CURDIR}/include/ft2build.h \
|
|
|
|
${DESTDIR}${X11BASE}/include/freetype2/ft2build.h
|
2007-10-27 01:09:48 -06:00
|
|
|
@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 \
|
2015-10-19 01:51:34 -06:00
|
|
|
${DESTDIR}${X11BASE}/include/freetype2/freetype/config/ftconfig.h
|
2007-10-27 01:09:48 -06:00
|
|
|
|
2012-10-26 00:09:27 -06:00
|
|
|
install-pc: freetype2.pc
|
|
|
|
${INSTALL_DATA} freetype2.pc ${DESTDIR}${LIBDIR}/pkgconfig
|
2006-11-26 04:54:18 -07:00
|
|
|
|
2012-10-29 14:15:29 -06:00
|
|
|
install-config: freetype-config
|
|
|
|
${INSTALL_PROGRAM} 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
|
2013-06-07 11:21:07 -06:00
|
|
|
sed -e s,%prefix%,${X11BASE}, -e s,%exec_prefix%,${X11BASE}, \
|
|
|
|
-e s,%ft_version%,${FT_VERSION_INFO}, \
|
|
|
|
-e s,%includedir%,${INCSDIR}, -e s,%libdir%,${LIBDIR}, \
|
2014-12-26 10:52:34 -07:00
|
|
|
-e s,%LIBS_PRIVATE%,-lz, -e s,%REQUIRES_PRIVATE%,, \
|
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
|
2013-06-07 11:21:07 -06:00
|
|
|
sed -e s,%prefix%,${X11BASE}, -e s,%exec_prefix%,${X11BASE}, \
|
|
|
|
-e s,%includedir%,${INCSDIR}, -e s,%libdir%,${LIBDIR}, \
|
2014-03-15 12:02:09 -06:00
|
|
|
-e 's,%LIBSSTATIC_CONFIG%,-lfreetype -lz,' \
|
2013-06-07 11:21:07 -06:00
|
|
|
-e 's,%hardcode_libdir_flag_spec%,,' \
|
|
|
|
-e 's,%ft_version%,${FT_VERSION_INFO},' -e 's,%wl%,,' \
|
|
|
|
-e 's,%build_libtool_libs%,yes,' \
|
2006-11-26 04:54:18 -07:00
|
|
|
< ${.CURDIR}/builds/unix/freetype-config.in \
|
|
|
|
> freetype-config
|
|
|
|
|
2012-10-29 14:15:29 -06:00
|
|
|
realinstall: install-pc install-config
|
2012-10-26 00:09:27 -06:00
|
|
|
|
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
|
|
|
|