New package: libx86emu-3.5
This commit is contained in:
parent
278bfaa4e1
commit
d80415363d
4 changed files with 72 additions and 0 deletions
|
@ -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
|
||||
|
|
1
srcpkgs/libx86emu-devel
Symbolic link
1
srcpkgs/libx86emu-devel
Symbolic link
|
@ -0,0 +1 @@
|
|||
libx86emu
|
38
srcpkgs/libx86emu/patches/makefile.patch
Normal file
38
srcpkgs/libx86emu/patches/makefile.patch
Normal file
|
@ -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
|
||||
|
32
srcpkgs/libx86emu/template
Normal file
32
srcpkgs/libx86emu/template
Normal file
|
@ -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 <meator.dev@gmail.com>"
|
||||
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"
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue