openbsd-ports/devel/newt/patches/patch-Makefile_in

32 lines
1.5 KiB
Plaintext
Raw Normal View History

$OpenBSD: patch-Makefile_in,v 1.1.1.1 2012/09/05 07:31:48 jasper Exp $
--- Makefile.in.orig Fri Nov 11 12:00:15 2011
+++ Makefile.in Wed Sep 5 09:27:50 2012
@@ -115,9 +115,7 @@ $(SHAREDDIR):
sharedlib: $(LIBNEWTSH)
$(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS)
- $(CC) -shared -o $(LIBNEWTSH) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS)
- ln -fs $(LIBNEWTSONAME) libnewt.so
- ln -fs $(LIBNEWTSH) $(LIBNEWTSONAME)
+ $(CC) -shared -o $(LIBNEWTSONAME) $(SHLIBFLAGS) $(SHAREDOBJS) $(LDFLAGS) $(LIBS)
$(SHAREDDIR)/%.o : %.c
$(CC) $(SHCFLAGS) -c $(CFLAGS) $(CPPFLAGS) -o $@ $<
@@ -132,14 +130,12 @@ install: $(LIBNEWT) install-sh whiptail
install -m 644 $(LIBNEWT) $(instroot)/$(libdir)
install -m 755 whiptail $(instroot)/$(bindir)
install -m 644 whiptail.1 $(instroot)/$(man1dir)
- make -C po datadir=$(instroot)/$(datadir) install
+ ${MAKE_PROGRAM} -C po datadir=$(instroot)/$(datadir) install
install -m 644 libnewt.pc $(instroot)/$(pkgconfigdir)
install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
[ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
- install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
- ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.so
- ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME)
+ install -m 755 $(LIBNEWTSONAME) $(instroot)/$(libdir)
[ -n "$(WHIPTCLSO)" ] && install -m 755 whiptcl.so $(instroot)/$(libdir) || :
[ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS) ; do \
[ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\