$OpenBSD: patch-openh323u_mak_in,v 1.3 2012/03/02 09:04:59 ajacoutot Exp $ --- openh323u.mak.in.orig Thu Sep 1 05:15:08 2011 +++ openh323u.mak.in Fri Mar 2 08:47:58 2012 @@ -70,11 +70,12 @@ LIBDIRS += $(OPENH323DIR) #OH323_SUPPRESS_H235 = 1 OH323_SRCDIR = $(OPENH323DIR)/src -ifdef PREFIX -OH323_INCDIR = $(PREFIX)/include/openh323 +ifndef OH323_BUILDSELF +OH323_INCDIR = ${PREFIX}/include/openh323 +OH323_LIBDIR = ${PREFIX}/lib else OH323_INCDIR = $(OPENH323DIR)/include -endif # PREFIX +endif ifndef OH323_LIBDIR OH323_LIBDIR = $(OPENH323DIR)/lib @@ -91,8 +92,12 @@ endif OH323_SUFFIX = $(OBJ_SUFFIX) endif # NOTRACE -OH323_BASE = h323_$(PLATFORM_TYPE)_$(OH323_SUFFIX)$(LIB_TYPE) +OH323_BASE = h323$(LIB_TYPE) +ifdef OH323_BUILDSELF OH323_FILE = lib$(OH323_BASE).$(LIB_SUFFIX) +else +OH323_FILE = lib$(OH323_BASE).$(LIB_SUFFIX).${LIBh323_VERSION} +endif LDFLAGS += -L$(OH323_LIBDIR) LDLIBS := -l$(OH323_BASE) $(LDLIBS)