diff --git a/src/interfaces/ecpg/lib/Makefile b/src/interfaces/ecpg/lib/Makefile.in
similarity index 96%
rename from src/interfaces/ecpg/lib/Makefile
rename to src/interfaces/ecpg/lib/Makefile.in
index e551a26a6ea07e521b8fdb32f9f593f5c7d2648c..e19859eda7b186665c799bc063a32622f73d1ef1 100644
--- a/src/interfaces/ecpg/lib/Makefile
+++ b/src/interfaces/ecpg/lib/Makefile.in
@@ -3,8 +3,10 @@ include $(SRCDIR)/Makefile.global
 
 PQ_INCLUDE=-I$(SRCDIR)/include -I$(SRCDIR)/interfaces/libpq
 
-SO_MAJOR_VERSION=0
-SO_MINOR_VERSION=5
+SO_MAJOR_VERSION=1
+SO_MINOR_VERSION=0
+
+PORTNAME=@PORTNAME@
 
 # Shared library stuff
 shlib :=