From 881193f078db8ee47f5d5572740d5f7882908f89 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Wed, 27 Oct 2021 16:13:43 +0000 Subject: build infrastructure for libxcvt --- lib/libxcvt/Makefile | 21 +++++++++++++++++++++ lib/libxcvt/cvt/Makefile | 20 ++++++++++++++++++++ lib/libxcvt/lib/Makefile | 18 ++++++++++++++++++ lib/libxcvt/lib/shlib_version | 2 ++ 4 files changed, 61 insertions(+) create mode 100644 lib/libxcvt/Makefile create mode 100644 lib/libxcvt/cvt/Makefile create mode 100644 lib/libxcvt/lib/Makefile create mode 100644 lib/libxcvt/lib/shlib_version (limited to 'lib/libxcvt') diff --git a/lib/libxcvt/Makefile b/lib/libxcvt/Makefile new file mode 100644 index 000000000..92188c300 --- /dev/null +++ b/lib/libxcvt/Makefile @@ -0,0 +1,21 @@ +# $OpenBSD: Makefile,v 1.1 2021/10/27 16:13:42 matthieu Exp $ + +SUBDIR= lib cvt + +INCS= libxcvt.h libxcvt_mode.h + +obj: _xenocara_obj + + +includes: _SUBDIRUSE + cd ${.CURDIR}/include/libxcvt; for i in ${INCS}; do \ + j="cmp -s $$i ${DESTDIR}${INCSDIR}/libxcvt/$$i || \ + ${INSTALL_DATA} $$i ${DESTDIR}${INCSDIR}/libxcvt"; \ + echo "\tinstalling $$i"; \ + eval "$$j"; \ + done + +beforeinstall: includes + +.include +.include diff --git a/lib/libxcvt/cvt/Makefile b/lib/libxcvt/cvt/Makefile new file mode 100644 index 000000000..2614f579c --- /dev/null +++ b/lib/libxcvt/cvt/Makefile @@ -0,0 +1,20 @@ +# $OpenBSD: Makefile,v 1.1 2021/10/27 16:13:42 matthieu Exp $ + +PROG= cvt + +CFLAGS+= -I${.CURDIR}/../include + +LDADD= -L../lib -lxcvt -lm + +obj: _xenocara_obj + +cvt.1: ${.CURDIR}/../man/cvt.man + sed -e 's,appmansuffix,1,g' \ + -e 's,filemansuffix,5,g' \ + -e 's,vendorversion,"libxcvt 0.1.1" "X Version 11",g' \ + < ${.CURDIR}/../man/cvt.man >$@ + +CLEANFILES+= cvt.1 + +.include +.include diff --git a/lib/libxcvt/lib/Makefile b/lib/libxcvt/lib/Makefile new file mode 100644 index 000000000..0244f779b --- /dev/null +++ b/lib/libxcvt/lib/Makefile @@ -0,0 +1,18 @@ +# $OpenBSD: Makefile,v 1.1 2021/10/27 16:13:42 matthieu Exp $ + +.include + +LIB= xcvt + +SRCS= libxcvt.c + +CFLAGS+= -I${.CURDIR}/../include + +LDADD= -lm + +NOPROFILE= + +obj: _xenocara_obj + +.include +.include diff --git a/lib/libxcvt/lib/shlib_version b/lib/libxcvt/lib/shlib_version new file mode 100644 index 000000000..97c9f92d6 --- /dev/null +++ b/lib/libxcvt/lib/shlib_version @@ -0,0 +1,2 @@ +major=0 +minor=0 -- cgit v1.2.3