2014-02-16 01:10:36 -07:00
|
|
|
# $OpenBSD: Makefile,v 1.33 2014/02/16 08:10:36 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
|
|
|
|
2012-10-13 11:16:20 -06:00
|
|
|
# Get it from builds/unix/configure.ac
|
2014-01-12 08:08:24 -07:00
|
|
|
FT_VERSION_INFO= 17.1.11
|
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 \
|
|
|
|
fttype1.c ftwinfnt.c ftxf86.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
|
|
|
|
|
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
|
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
|
2006-11-26 04:54:18 -07:00
|
|
|
|
2012-10-29 14:15:29 -06:00
|
|
|
depend: freetype-config freetype2.pc
|
|
|
|
|
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 \
|
2014-01-12 08:08:24 -07:00
|
|
|
${DESTDIR}${X11BASE}/include/freetype2/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}, \
|
|
|
|
-e s,%LIBZ%,-lz, -e s,%FT2_EXTRA_LIBS%,, \
|
|
|
|
-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
|
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}, \
|
|
|
|
-e s,%LIBZ%,-lz, -e s,%FT2_EXTRA_LIBS%,, \
|
2014-01-12 08:08:24 -07:00
|
|
|
-e s,%LIBBZ2%,, -e s,%LIBPNG%,, \
|
2013-06-07 11:21:07 -06:00
|
|
|
-e s,%enable_shared%,yes, \
|
|
|
|
-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
|
|
|
|