summary refs log tree commit diff
path: root/port/wcwidth/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-21 18:10:52 -0400
committerJune McEnroe <june@causal.agency>2020-04-21 18:10:52 -0400
commitf6d39710f9965c55b4050f81f0a0ae0b3049a7a3 (patch)
treecbcace856150dc9b20f016b10e299bd39954aa8f /port/wcwidth/Makefile
parentUse . as ${LDLIBS.$@} separator (diff)
downloadsrc-f6d39710f9965c55b4050f81f0a0ae0b3049a7a3.tar.gz
src-f6d39710f9965c55b4050f81f0a0ae0b3049a7a3.zip
Add Markus Kuhn's wcwidth implementation
And wcfix script for macOS, based on
<https://blog.nytsoi.net/2015/05/04/emoji-support-for-weechat> to fix
some emoji display in catgirl. Somehow this code from 2007 against
Unicode 5.0 does a better job than whatever the hell macOS Mojave's libc
is doing.
Diffstat (limited to 'port/wcwidth/Makefile')
-rw-r--r--port/wcwidth/Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/port/wcwidth/Makefile b/port/wcwidth/Makefile
new file mode 100644
index 00000000..4fbb2863
--- /dev/null
+++ b/port/wcwidth/Makefile
@@ -0,0 +1,16 @@
+PREFIX = ~/.local
+
+CFLAGS = -Dmk_wcwidth=wcwidth -Dmk_wcswidth=wcswidth
+
+OBJS = wcwidth.o
+DYLIB = libwcwidth.dylib
+
+${DYLIB}: ${OBJS}
+	${CC} -dynamiclib ${LDFLAGS} ${OBJS} -o $@
+
+install: ${DYLIB}
+	install -d ${PREFIX}/lib
+	install -m 644 ${DYLIB} ${PREFIX}/lib
+
+uninstall:
+	rm -f ${PREFIX}/lib/${DYLIB}
td>June McEnroe 2024-10-12Add photos from October 5June McEnroe 2024-10-09Add photos from October 1June McEnroe 2024-10-07Add photos from September 29June McEnroe 2024-10-07Add photos from September 28June McEnroe 2024-10-07Add photos from September 22June McEnroe 2024-09-25Add photos from September 15June McEnroe 2024-09-24Add photos from September 14June McEnroe 2024-09-24Add photos from September 12June McEnroe 2024-09-24Add photos from September 7June McEnroe 2024-09-24Allow not having descriptionsJune McEnroe 2024-09-23Automatically select the last used lens for a bodyJune McEnroe 2024-09-19Add photos from September 5June McEnroe 2024-09-15Add some more film stocks to the listJune McEnroe 2024-09-13Add photos from September 2June McEnroe 2024-09-13Add Fomapan 200 to films listJune McEnroe 2024-09-10Add August 29 picnic photosJune McEnroe 2024-09-08Apply some bold to trips renderingJune McEnroe 2024-09-08Render trips hopefully more efficientlyJune McEnroe 2024-09-08Allow removing bodies and lensesJune McEnroe 2024-09-08Limit body width so it looks less silly on desktopJune McEnroe 2024-09-07Handle no film being loadedJune McEnroe 2024-09-07Fancy up the text a littleJune McEnroe