summaryrefslogtreecommitdiff
path: root/lib/fontconfig/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fontconfig/src/Makefile')
-rw-r--r--lib/fontconfig/src/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/fontconfig/src/Makefile b/lib/fontconfig/src/Makefile
index ba0d30ce8..34ada90f0 100644
--- a/lib/fontconfig/src/Makefile
+++ b/lib/fontconfig/src/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.1 2013/03/09 14:34:46 matthieu Exp $
+# $OpenBSD: Makefile,v 1.3 2013/03/13 23:56:54 matthieu Exp $
FONTCONFIG= ${.CURDIR}/../../../dist/fontconfig
@@ -63,11 +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
+
+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