diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-10-27 16:13:43 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-10-27 16:13:43 +0000 |
commit | 881193f078db8ee47f5d5572740d5f7882908f89 (patch) | |
tree | 7235704d288c3cf86a1e314806a3d879a19d47d5 /lib/libxcvt | |
parent | be7e572084cfa887b0205638e85d83af6ab2aa14 (diff) |
build infrastructure for libxcvt
Diffstat (limited to 'lib/libxcvt')
-rw-r--r-- | lib/libxcvt/Makefile | 21 | ||||
-rw-r--r-- | lib/libxcvt/cvt/Makefile | 20 | ||||
-rw-r--r-- | lib/libxcvt/lib/Makefile | 18 | ||||
-rw-r--r-- | lib/libxcvt/lib/shlib_version | 2 |
4 files changed, 61 insertions, 0 deletions
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 <bsd.subdir.mk> +.include <bsd.xorg.mk> 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 <bsd.prog.mk> +.include <bsd.xorg.mk> 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 <bsd.xconf.mk> + +LIB= xcvt + +SRCS= libxcvt.c + +CFLAGS+= -I${.CURDIR}/../include + +LDADD= -lm + +NOPROFILE= + +obj: _xenocara_obj + +.include <bsd.lib.mk> +.include <bsd.xorg.mk> 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 |