diff --git a/common/shlibs b/common/shlibs index a87dd23bfa5..999d3ad714b 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4096,3 +4096,4 @@ libkaddressbookmergelibprivate.so.5 kdepim-addons-21.08.3_1 libkmailconfirmbeforedeleting.so.5 kdepim-addons-21.08.3_1 libkaddressbookprivate.so.5 kaddressbook-21.08.3_1 libcodec2.so.1.0 codec2-1.0.1_1 +libx86emu.so.3 libx86emu-3.4_1 diff --git a/srcpkgs/libx86emu-devel b/srcpkgs/libx86emu-devel new file mode 120000 index 00000000000..2a7a94ee3c3 --- /dev/null +++ b/srcpkgs/libx86emu-devel @@ -0,0 +1 @@ +libx86emu \ No newline at end of file diff --git a/srcpkgs/libx86emu/patches/makefile.patch b/srcpkgs/libx86emu/patches/makefile.patch new file mode 100644 index 00000000000..5c5465c54f3 --- /dev/null +++ b/srcpkgs/libx86emu/patches/makefile.patch @@ -0,0 +1,38 @@ +--- a/Makefile 2021-08-18 18:30:18.000000000 +0200 ++++ b/Makefile 2021-10-12 20:08:12.973944586 +0200 +@@ -12,7 +12,7 @@ + MAJOR_VERSION := $(shell $(GIT2LOG) --version VERSION ; cut -d . -f 1 VERSION) + + CC = gcc +-CFLAGS = -g -O2 -fPIC -fvisibility=hidden -fomit-frame-pointer -Wall ++CFLAGS = -g -O2 -fomit-frame-pointer -Wall + LDFLAGS = + + LIBDIR = /usr/lib$(shell ldd /bin/sh | grep -q /lib64/ && echo 64) +@@ -27,7 +27,7 @@ + .PHONY: all shared install test demo clean + + %.o: %.c +- $(CC) -c $(CFLAGS) $< ++ $(CC) -c -fPIC -fvisibility=hidden $(CFLAGS) $< + + all: changelog shared + +@@ -43,7 +43,7 @@ + install -m 644 -D include/x86emu.h $(DESTDIR)/usr/include/x86emu.h + + $(LIB_NAME): .depend $(OBJS) +- $(CC) -shared -Wl,-soname,$(LIB_SONAME) $(OBJS) -o $(LIB_NAME) $(LDFLAGS) ++ $(CC) -fvisibility=hidden -shared -Wl,-soname,$(LIB_SONAME) $(OBJS) -o $(LIB_NAME) $(LDFLAGS) + @ln -snf $(LIB_NAME) $(LIB_SONAME) + @ln -snf $(LIB_SONAME) $(LIBX86).so + +@@ -68,7 +68,7 @@ + + ifneq "$(MAKECMDGOALS)" "clean" + .depend: $(CFILES) +- @$(CC) -MG -MM $(CFLAGS) $(CFILES) >$@ ++ @$(CC) -MG -MM -fPIC -fvisibility=hidden $(CFLAGS) $(CFILES) >$@ + -include .depend + endif + diff --git a/srcpkgs/libx86emu/template b/srcpkgs/libx86emu/template new file mode 100644 index 00000000000..f24b742eb0b --- /dev/null +++ b/srcpkgs/libx86emu/template @@ -0,0 +1,32 @@ +# Template file for 'libx86emu' +pkgname=libx86emu +version=3.5 +revision=1 +build_style=gnu-makefile +make_check_target=test +make_install_args="LIBDIR=/usr/lib${XBPS_TARGET_WORDSIZE}" +checkdepends="perl nasm" +short_desc="X86 emulation library" +maintainer="meator " +license="MIT" # Old Style with legal disclaimer +homepage="https://github.com/wfeldt/libx86emu" +distfiles="https://github.com/wfeldt/libx86emu/archive/refs/tags/${version}.tar.gz" +checksum=91da55f5da55017d5a80e2364de30f9520aa8df2744ff587a09ba58d6e3536c8 + +do_configure() { + rm git2log + echo ${version} > VERSION +} + +post_install() { + vlicense LICENSE +} + +libx86emu-devel_package() { + depends="${sourcepkg}>=${version}_${revision}" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove "usr/lib/*.so" + } +}