diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2013-03-13 23:56:55 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2013-03-13 23:56:55 +0000 |
commit | e773b7152214a07613a43019f87a6619dabc780d (patch) | |
tree | cf297447769671aba26b4bf9ce9388d844006c79 | |
parent | 7d6cb208f8f908c0bae0b8a3fefd45420c302c01 (diff) |
Add back a libtool archive for libfontconfig.
OpenBSD's libtool needs it for libraries with dependencies.
prodded by espie@
-rw-r--r-- | lib/fontconfig/src/Makefile | 19 | ||||
-rw-r--r-- | lib/fontconfig/src/libfontconfig.la.in | 41 |
2 files changed, 52 insertions, 8 deletions
diff --git a/lib/fontconfig/src/Makefile b/lib/fontconfig/src/Makefile index 3a5331075..34ada90f0 100644 --- a/lib/fontconfig/src/Makefile +++ b/lib/fontconfig/src/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2013/03/12 06:26:25 matthieu Exp $ +# $OpenBSD: Makefile,v 1.3 2013/03/13 23:56:54 matthieu Exp $ FONTCONFIG= ${.CURDIR}/../../../dist/fontconfig @@ -63,17 +63,20 @@ fcobjshash.h: fcobjshash.gperf mv -f $@.tmp $@ || ( $(RM) $@.tmp && false ) .endif -beforedepend: fcalias.h fcftalias.h fcobjshash.h +beforedepend: fcalias.h fcftalias.h fcobjshash.h lib${LIB}.la -beforeinstall: - @if [ -f ${DESTDIR}${LIBDIR}/libfontconfig.la ]; then \ - echo "rm -f ${DESTDIR}${LIBDIR}/libfontconfig.la" ; \ - rm -f ${DESTDIR}${LIBDIR}/libfontconfig.la ; \ - fi +lib${LIB}.la: ${.CURDIR}/lib${LIB}.la.in + @sed -e 's#@libdir@#${LIBDIR}#g' \ + -e 's#@major@#${SHLIB_MAJOR}#g' \ + -e 's#@minor@#${SHLIB_MINOR}#g' \ + < $? > $@ + +afterinstall: + ${INSTALL_DATA} lib${LIB}.la ${DESTDIR}${LIBDIR} obj:_xenocara_obj -CLEANFILES = fcalias.h fcaliastail.h fcftalias.h fcftaliastail.h +CLEANFILES = fcalias.h fcaliastail.h fcftalias.h fcftaliastail.h lib${LIB}.la .PATH: ${FONTCONFIG}/src diff --git a/lib/fontconfig/src/libfontconfig.la.in b/lib/fontconfig/src/libfontconfig.la.in new file mode 100644 index 000000000..b5c9717ce --- /dev/null +++ b/lib/fontconfig/src/libfontconfig.la.in @@ -0,0 +1,41 @@ +# libfontconfig.la - a libtool library file +# Generated by libtool +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname='libfontconfig.so.@major@.@minor@' + +# Names of this library. +library_names='libfontconfig.so.@major@.@minor@' + +# The name of the static archive. +old_library='libfontconfig.a' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags='' + +# Libraries that this one depends upon. +dependency_libs='-L/usr/X11R6/lib -lfreetype -lz -lexpat -lpthread-stubs' + +# Names of additional weak libraries provided by this library +weak_library_names='' + +# Version information for libfontconfig. +current=5 +age=4 +revision=4 + +# Is this an already installed library? +installed=yes + +# Should we warn about portability when linking against -modules? +shouldnotlink=no + +# Files to dlopen/dlpreopen +dlopen='' +dlpreopen='' + +# Directory that this library needs to be installed in: +libdir='@libdir@' |