Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pkgsrc port #43

Open
adr-adr opened this issue Jan 24, 2024 · 2 comments
Open

Pkgsrc port #43

adr-adr opened this issue Jan 24, 2024 · 2 comments

Comments

@adr-adr
Copy link

adr-adr commented Jan 24, 2024

Hi, I'm making a pkgsrc port of the last release. Can you take a look at these small patches?
Thanks.

=============================================
--- Makefile.orig	2019-12-17 16:05:14.000000000 +0000
+++ Makefile
@@ -4,7 +4,7 @@
 VERSION=3.3
 
 # To test strict C ANSI compliance
-CC = gcc -ansi -pedantic
+CC ?= gcc -ansi -pedantic
 LIB= -lm
 
 # This allow you to write commands like "make PURE=purify demo1"
@@ -26,7 +26,7 @@ CCPURE = $(PURE) $(CC)
 
 # If endianess of your machine is not automatically detected in Misc/common.h
 # you should manually specify here
-CFLAGS += -DLITTLE_ENDIAN
+#CFLAGS += -DLITTLE_ENDIAN
 #CFLAGS += -DBIG_ENDIAN
 
 #######################
=============================================
--- Misc/common.h.orig	2019-12-17 16:05:14.000000000 +0000
+++ Misc/common.h
@@ -70,11 +70,11 @@
 void swab( const char *from, char *to, int nbytes);
 #endif
 
-#if defined(__GLIBC__)
+#if defined(__GLIBC__) || defined(TARGET_OS_NETBSD)
 #include <endian.h>
 #undef BIG_ENDIAN
 #undef LITTLE_ENDIAN
-#if __BYTE_ORDER == __LITTLE_ENDIAN
+#if __BYTE_ORDER == __LITTLE_ENDIAN || _BYTE_ORDER == _LITTLE_ENDIAN
 #  define LITTLE_ENDIAN
 #else
 #  define BIG_ENDIAN
@valdisvi
Copy link
Collaborator

@adr-adr, can you provide it as proper patch file or merge request?

@adr-adr
Copy link
Author

adr-adr commented Jan 24, 2024

Sure.
mbrola_pkgsrc_patches.tgz

@0-wiz-0 0-wiz-0 mentioned this issue Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants